From 2057c354685e89cce4a273160eb7c69063b02cae Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 21 Dec 2020 20:09:45 +1100 Subject: [PATCH] Use ! is_empty instead of len > 0 As directed by clippy use `!a.is_empty()` instead of `a.len() > 0`. --- testutils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutils/src/lib.rs b/testutils/src/lib.rs index c60573e2..3a0e5b63 100644 --- a/testutils/src/lib.rs +++ b/testutils/src/lib.rs @@ -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" );