diff --git a/crates/chain/tests/test_spk_txout_index.rs b/crates/chain/tests/test_spk_txout_index.rs index e8b752146c..bd9c4f65da 100644 --- a/crates/chain/tests/test_spk_txout_index.rs +++ b/crates/chain/tests/test_spk_txout_index.rs @@ -96,5 +96,5 @@ fn unmark_used_does_not_result_in_invalid_representation() { assert!(!spk_index.unmark_used(&0)); assert!(!spk_index.unmark_used(&1)); assert!(!spk_index.unmark_used(&2)); - assert!(spk_index.unused_spks(..).collect::>().is_empty()); + assert!(spk_index.unused_spks(..).next().is_none()); }