Skip to content

Commit 86acc50

Browse files
committed
fix clippy
1 parent c0e027a commit 86acc50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/fiber-lib/src/fiber/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ where
14301430
*fee = fee.saturating_add(1);
14311431
}
14321432

1433-
if fees.iter().any(|&f| f == 0) {
1433+
if fees.contains(&0) {
14341434
return Err(PathFindError::Other(
14351435
"max_fee_amount is too low for trampoline routing: fee for a trampoline hop is zero"
14361436
.to_string(),

crates/fiber-lib/src/fiber/payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl SendPaymentDataBuilder {
383383
"trampoline_hops must contain only one hop when MPP is enabled".to_string(),
384384
);
385385
}
386-
if hops.iter().any(|h| *h == target_pubkey) {
386+
if hops.contains(&target_pubkey) {
387387
return Err("trampoline_hops must not contain target_pubkey".to_string());
388388
}
389389
if self.max_fee_amount.is_none() {

0 commit comments

Comments
 (0)