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:
parent
5eaa3b0916
commit
2057c35468
@ -349,7 +349,7 @@ impl TestClient {
|
|||||||
|
|
||||||
pub fn receive(&mut self, meta_tx: TestIncomingTx) -> Txid {
|
pub fn receive(&mut self, meta_tx: TestIncomingTx) -> Txid {
|
||||||
assert!(
|
assert!(
|
||||||
meta_tx.output.len() > 0,
|
!meta_tx.output.is_empty(),
|
||||||
"can't create a transaction with no outputs"
|
"can't create a transaction with no outputs"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user