diff --git a/flake.nix b/flake.nix index 6c90420..d5bfae1 100644 --- a/flake.nix +++ b/flake.nix @@ -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 + ]; + }); + }; } diff --git a/src/main.rs b/src/main.rs index c46b5ed..e689d36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,6 +49,7 @@ fn get_pixel(grids: &mut [grid::FlutGrid], canvas: u8, x: u16, y: u16) -> O } } +#[inline] fn increment_counter() { COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed); }