chore: format nix file

This commit is contained in:
Noa Aarts 2024-08-22 13:47:46 +02:00
parent 9f1f23e62b
commit cb51cacf9a
2 changed files with 15 additions and 14 deletions

View file

@ -1,8 +1,8 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = {self, nixpkgs, ...}:
let
outputs = { self, nixpkgs, ... }:
let
allSystems = [
"x86_64-linux" # 64-bit Intel/AMD Linux
"aarch64-linux" # 64-bit ARM Linux
@ -14,15 +14,15 @@
pkgs = import nixpkgs { inherit system; };
});
in
{
devShell = forAllSystems ({ system, pkgs }:
pkgs.mkShell {
buildInputs = [
pkgs.rustup
pkgs.wgo
pkgs.cargo-flamegraph
pkgs.cargo-udeps
];
});
};
{
devShell = forAllSystems ({ system, pkgs }:
pkgs.mkShell {
buildInputs = [
pkgs.rustup
pkgs.wgo
pkgs.cargo-flamegraph
pkgs.cargo-udeps
];
});
};
}

View file

@ -49,6 +49,7 @@ fn get_pixel(grids: &mut [grid::FlutGrid<u32>], canvas: u8, x: u16, y: u16) -> O
}
}
#[inline]
fn increment_counter() {
COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
}