Skip to content

Commit 975e929

Browse files
committed
Improve clippy.sh
1 parent 83fbc06 commit 975e929

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crate/tests/lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fn lints() {
1515
let entry = entry.unwrap();
1616
let path = entry.path();
1717

18+
#[allow(clippy::explicit_write)]
1819
writeln!(stderr(), "{:?}", path.canonicalize().unwrap()).unwrap();
1920

2021
std::process::Command::new("cargo")

scripts/clippy.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ WORKSPACE="$(realpath "$SCRIPTS"/..)"
1313

1414
cd "$WORKSPACE"
1515

16-
for X in lints/*; do
17-
pushd "$X"
18-
cargo clippy --workspace --tests -- \
16+
for X in . lints/*; do
17+
cargo clippy --manifest-path "$X"/Cargo.toml --workspace --tests -- \
1918
-D warnings \
2019
-W clippy::pedantic
21-
popd
2220
done

0 commit comments

Comments
 (0)