Skip to content

Commit 740d499

Browse files
committed
Remove length comparison to zero
Clippy emits: warning: length comparison to zero Remove length comparison to zero, use `!is_empty`.
1 parent 610ab8d commit 740d499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ mod tests {
860860
assert_eq!(redeem_script.to_p2sh(), expected_out);
861861

862862
for output in psbt.outputs {
863-
assert!(output.get_pairs().unwrap().len() > 0)
863+
assert!(!output.get_pairs().unwrap().is_empty())
864864
}
865865
}
866866

0 commit comments

Comments
 (0)