diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 69392efb9..dc2e65eeb 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -305,11 +305,7 @@ jobs: - name: workspace run: | - cargo clippy --workspace --all-features -- -Dwarnings - - name: wheel - run: | - cd wheel - cargo clippy --all-features -- -Dwarnings + cargo clippy --workspace --all-features --all-targets -- -Dwarnings fuzz_targets: runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 836420e6d..5f6325212 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: name: clippy description: run cargo clippy on the workspace stages: [pre-push] - entry: cargo clippy --workspace --all-features -- -Dwarnings + entry: cargo clippy --workspace --all-features --all-targets -- -Dwarnings language: system pass_filenames: false - id: build diff --git a/crates/chia-consensus/benches/merkle-set.rs b/crates/chia-consensus/benches/merkle-set.rs index 7b6448968..2c6e1619a 100644 --- a/crates/chia-consensus/benches/merkle-set.rs +++ b/crates/chia-consensus/benches/merkle-set.rs @@ -65,7 +65,7 @@ fn run(c: &mut Criterion) { let start = Instant::now(); for (p, leaf) in zip(&proofs, &leafs) { let _ = - black_box(validate_merkle_proof(&p, leaf, root).expect("expect valid proof")); + black_box(validate_merkle_proof(p, leaf, root).expect("expect valid proof")); } start.elapsed() }) diff --git a/crates/chia-consensus/src/merkle_tree.rs b/crates/chia-consensus/src/merkle_tree.rs index 7078f1e59..80afdf77c 100644 --- a/crates/chia-consensus/src/merkle_tree.rs +++ b/crates/chia-consensus/src/merkle_tree.rs @@ -620,7 +620,7 @@ mod tests { assert!(included); let rebuilt = MerkleSet::from_proof(&proof).expect("failed to parse proof"); assert_eq!(rebuilt.get_root(), root); - let (included, new_proof) = rebuilt.generate_proof(&item).unwrap(); + let (included, new_proof) = rebuilt.generate_proof(item).unwrap(); assert!(included); assert_eq!(new_proof, Vec::::new()); assert_eq!(rebuilt.get_root(), root);