Use ! is_empty instead of len > 0

As directed by clippy use `!a.is_empty()` instead of `a.len() > 0`.
This commit is contained in:
Tobin Harding 2020-12-21 20:09:45 +11:00
parent 5eaa3b0916
commit 2057c35468
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607

View File

@ -349,7 +349,7 @@ impl TestClient {
pub fn receive(&mut self, meta_tx: TestIncomingTx) -> Txid {
assert!(
meta_tx.output.len() > 0,
!meta_tx.output.is_empty(),
"can't create a transaction with no outputs"
);