Skip to content

Commit c8c477b

Browse files
committed
clippy: lint fuzztests
1 parent 9347e2c commit c8c477b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fuzz/fuzz_targets/deserialize_transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ fn do_test(data: &[u8]) {
1414
let reser = elements::encode::serialize(&tx);
1515
assert_eq!(data, &reser[..]);
1616
let len = reser.len();
17-
let calculated_weight = tx.get_weight();
17+
let calculated_weight = tx.weight();
1818
for input in &mut tx.input {
1919
input.witness = elements::TxInWitness::default();
2020
}
2121
for output in &mut tx.output {
2222
output.witness = elements::TxOutWitness::default();
2323
}
24-
assert_eq!(tx.has_witness(), false);
24+
assert!(!tx.has_witness());
2525
let no_witness_len = elements::encode::serialize(&tx).len();
2626
assert_eq!(no_witness_len * 3 + len, calculated_weight);
2727

0 commit comments

Comments
 (0)