From 7282aa7a8d2500f505caedaf64b656490602abc3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 17 Jul 2024 14:08:50 +0000 Subject: [PATCH] Drop excess `()`s in `router.rs` --- lightning/src/routing/router.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 28a991a32..71fde86d0 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -2433,10 +2433,10 @@ where L::Target: Logger { #[allow(unused_comparisons)] // $next_hops_path_htlc_minimum_msat is 0 in some calls so rustc complains let may_overpay_to_meet_path_minimum_msat = - ((amount_to_transfer_over_msat < htlc_minimum_msat && + (amount_to_transfer_over_msat < htlc_minimum_msat && recommended_value_msat >= htlc_minimum_msat) || - (amount_to_transfer_over_msat < $next_hops_path_htlc_minimum_msat && - recommended_value_msat >= $next_hops_path_htlc_minimum_msat)); + (amount_to_transfer_over_msat < $next_hops_path_htlc_minimum_msat && + recommended_value_msat >= $next_hops_path_htlc_minimum_msat); let payment_failed_on_this_channel = match scid_opt { Some(scid) => payment_params.previously_failed_channels.contains(&scid), -- 2.39.5