Custom pre-commit clippy hook to use the correct toolchain
This commit is contained in:
parent
e871964f30
commit
a6b2f9d8d7
1 changed files with 11 additions and 1 deletions
12
flake.nix
12
flake.nix
|
@ -77,7 +77,17 @@
|
|||
nixpkgs-fmt.enable = true;
|
||||
statix.enable = true;
|
||||
deadnix.enable = true;
|
||||
clippy.enable = true;
|
||||
rust-overlay-clippy = {
|
||||
enable = true;
|
||||
name = "rust-overlay clippy";
|
||||
entry = "${rustToolchain}/bin/cargo-clippy clippy";
|
||||
files = "\\.rs$";
|
||||
excludes = [ "^$" ];
|
||||
types = [ "file" ];
|
||||
types_or = [ ];
|
||||
language = "system";
|
||||
pass_filenames = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue