Skip to content

Commit ccd392c

Browse files
committed
Fix new clippy lints from latest versions of clippy
1 parent 98297a6 commit ccd392c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ci/check-lint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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`

lightning/src/chain/onchaintx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(&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(&outpoint)));
730730
}
731731
}
732732

0 commit comments

Comments
 (0)