Skip to content

Commit

Permalink
Lint tests with clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
willbush committed Mar 26, 2024
1 parent d20e68a commit 6f3f293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ rustPlatform.buildRustPackage {
preCheck = initNix;
postCheck = ''
cargo fmt --check
cargo clippy -- -D warnings
# --tests or --all-targets include tests for linting
cargo clippy --all-targets -- -D warnings
'';
postInstall = ''
wrapProgram $out/bin/nixpkgs-check-by-name \
Expand Down

0 comments on commit 6f3f293

Please sign in to comment.