From 8132f32e912a9e6f732d9883ae0fc2c68590efe4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 11 May 2026 17:53:07 +0200 Subject: [PATCH] chore: allow passing arguments to scripts/clippy.sh This makes it possible to run `scripts/clippy.sh --fix --allow-dirty` to fix clippy warnings automatically. --- scripts/clippy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/clippy.sh b/scripts/clippy.sh index 986d03325..93197dcf6 100755 --- a/scripts/clippy.sh +++ b/scripts/clippy.sh @@ -1,3 +1,9 @@ #!/bin/sh # Run clippy for all Rust code in the project. -cargo clippy --workspace --all-targets --all-features -- -D warnings +# +# To check, run +# scripts/clippy.sh +# +# To automatically fix warnings, run +# scripts/clippy.sh --fix --allow-dirty +cargo clippy --workspace --all-targets --all-features "$@" -- -D warnings