File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/fiber-lib/src/fiber Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments