From: Tobin Harding Date: Mon, 21 Dec 2020 09:09:45 +0000 (+1100) Subject: Use ! is_empty instead of len > 0 X-Git-Tag: v0.5.0~10^2~19 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/%22example_cli/enum.Commands.html/struct.Error.html?a=commitdiff_plain;h=2057c354685e89cce4a273160eb7c69063b02cae;p=bdk Use ! is_empty instead of len > 0 As directed by clippy use `!a.is_empty()` instead of `a.len() > 0`. --- 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" );