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 committed 2021-02-24 13:30:46 +11:00
1 parent 5eaa3b0916
commit 2057c35468
1 file changed
+1 -1
+1 -1
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"
);