Skip to content

Commit 321cdf8

Browse files
committed
fix(clippy): use is_none_or instead of map_or
1 parent aa7cf91 commit 321cdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/chain/src/indexer/keychain_txout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ impl Merge for ChangeSet {
10581058
debug_assert!(
10591059
orig_spks
10601060
.iter()
1061-
.all(|(i, orig_spk)| spks.get(i).map_or(true, |spk| spk == orig_spk)),
1061+
.all(|(i, orig_spk)| spks.get(i).is_none_or(|spk| spk == orig_spk)),
10621062
"spk of the same descriptor-id and derivation index must not be different"
10631063
);
10641064
orig_spks.extend(spks);

0 commit comments

Comments
 (0)