Skip to content

Commit

Permalink
Merge pull request #820 from Chia-Network/clippy-fix
Browse files Browse the repository at this point in the history
Fix clippy warning and deny them in the future
  • Loading branch information
arvidn authored Dec 12, 2024
2 parents 5741047 + d5ee025 commit 070826c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: cargo fmt --all -- --files-with-diff --check

- name: Clippy
run: cargo clippy --workspace --all-features --all-targets
run: cargo clippy --workspace --all-features --all-targets -- -D warnings

- name: Install cargo-machete
run: cargo install cargo-machete
Expand Down
2 changes: 1 addition & 1 deletion crates/chia-consensus/src/spendbundle_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ ff01\
#[case] sk_hex: &str,
) {
let sk = SecretKey::from_bytes(&<[u8; 32]>::from_hex(sk_hex).unwrap()).unwrap();
let sol_bytes: Vec<u8> = hex::decode(solution).unwrap().to_vec();
let sol_bytes = hex::decode(solution).unwrap();
let full_puz = Bytes32::new(tree_hash_atom(&[1_u8]).to_bytes());
let test_coin = Coin::new(
hex!("4444444444444444444444444444444444444444444444444444444444444444").into(),
Expand Down

0 comments on commit 070826c

Please sign in to comment.