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, ...}: outputs = { self, nixpkgs, ... }:
let let
allSystems = [ allSystems = [
"x86_64-linux" # 64-bit Intel/AMD Linux "x86_64-linux" # 64-bit Intel/AMD Linux
"aarch64-linux" # 64-bit ARM Linux "aarch64-linux" # 64-bit ARM Linux
@ -14,15 +14,15 @@
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
}); });
in in
{ {
devShell = forAllSystems ({ system, pkgs }: devShell = forAllSystems ({ system, pkgs }:
pkgs.mkShell { pkgs.mkShell {
buildInputs = [ buildInputs = [
pkgs.rustup pkgs.rustup
pkgs.wgo pkgs.wgo
pkgs.cargo-flamegraph pkgs.cargo-flamegraph
pkgs.cargo-udeps 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() { fn increment_counter() {
COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed); COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
} }