File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -95,4 +95,5 @@ RUSTFLAGS='-D warnings' cargo clippy -- \
9595 -A clippy::unused_unit \
9696 -A clippy::useless_conversion \
9797 -A clippy::unnecessary_map_or ` # to be removed once we hit MSRV 1.70` \
98- -A clippy::manual_repeat_n ` # to be removed once we hit MSRV 1.86`
98+ -A clippy::manual_repeat_n ` # to be removed once we hit MSRV 1.86` \
99+ -A clippy::io_other_error ` # to be removed once we hit MSRV 1.74`
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ impl<ChannelSigner: EcdsaChannelSigner> OnchainTxHandler<ChannelSigner> {
715715 let claim_id = self . claimable_outpoints . get ( outpoint) . map ( |( claim_id, _) | * claim_id)
716716 . or_else ( || {
717717 self . pending_claim_requests . iter ( )
718- . find ( |( _, claim) | claim. outpoints ( ) . iter ( ) . any ( |claim_outpoint| * claim_outpoint == outpoint) )
718+ . find ( |( _, claim) | claim. outpoints ( ) . contains ( |claim_outpoint| * claim_outpoint == outpoint) )
719719 . map ( |( claim_id, _) | * claim_id)
720720 } ) ;
721721 if let Some ( claim_id) = claim_id {
@@ -726,7 +726,7 @@ impl<ChannelSigner: EcdsaChannelSigner> OnchainTxHandler<ChannelSigner> {
726726 }
727727 } else {
728728 self . locktimed_packages . values_mut ( ) . for_each ( |claims|
729- claims. retain ( |claim| !claim. outpoints ( ) . iter ( ) . any ( |claim_outpoint| * claim_outpoint == outpoint) ) ) ;
729+ claims. retain ( |claim| !claim. outpoints ( ) . contains ( |claim_outpoint| * claim_outpoint == outpoint) ) ) ;
730730 }
731731 }
732732
You can’t perform that action at this time.
0 commit comments