diff --git a/src/transaction/input/mod.rs b/src/transaction/input/mod.rs index 56f222fe..f4bf5fcf 100644 --- a/src/transaction/input/mod.rs +++ b/src/transaction/input/mod.rs @@ -75,7 +75,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(()); }