Remove length comparison to zero

Clippy emits:

  warning: length comparison to zero

Remove length comparison to zero, use `!is_empty`.
This commit is contained in:
Tobin C. Harding 2022-06-07 15:17:20 +10:00
parent c1f34f5c0e
commit d8e82d5cd4
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ mod tests {
assert_eq!(redeem_script.to_p2sh(), expected_out);
for output in psbt.outputs {
assert!(output.get_pairs().unwrap().len() > 0)
assert!(!output.get_pairs().unwrap().is_empty())
}
}