Allow passing initial arguments to cargo to lint.sh

Change-Id: I88e0a2adb2bfb5793ad6e31dd91f7a5ed1c7ab45
This commit is contained in:
hikari_no_yume
2024-08-24 23:12:56 +02:00
parent 30dfa827dd
commit 27a0d39a35

View File

@@ -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