diff --git a/dev-scripts/lint.sh b/dev-scripts/lint.sh index 647f0e955..fdfe3c8ad 100755 --- a/dev-scripts/lint.sh +++ b/dev-scripts/lint.sh @@ -18,7 +18,7 @@ printf '\e[32mNone found.\e[0m\n' set -ex # "--deny warnings" ensures that warnings result in a non-zero exit status. -cargo clippy -- --deny warnings +cargo $@ clippy -- --deny warnings # "--document-private-items" has to be added again so the flag from # .cargo/config.toml isn't overridden RUSTDOCFLAGS="--deny warnings --document-private-items" cargo doc