From 28a0709fd5b50c09de3c33d227badf18b3d9c79b Mon Sep 17 00:00:00 2001 From: Eval Exec Date: Mon, 13 May 2024 10:06:02 +0800 Subject: [PATCH] Update mod.rs --- src/transaction/input/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transaction/input/mod.rs b/src/transaction/input/mod.rs index 56f222fe..a79f0eb6 100644 --- a/src/transaction/input/mod.rs +++ b/src/transaction/input/mod.rs @@ -1,5 +1,4 @@ pub mod transaction_input; -use anyhow::{anyhow, Error}; use ckb_types::packed::Script; pub use transaction_input::TransactionInput; @@ -75,7 +74,7 @@ impl InputIterator { fn collect_live_cells(&mut self) -> Result<(), CellCollectorError> { loop { - if self.lock_scripts.len() == 0 { + if self.lock_scripts.is_empty() { return Ok(()); }