]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop excess `()`s in `router.rs` 2024-07-routing-nits
authorMatt Corallo <git@bluematt.me>
Wed, 17 Jul 2024 14:08:50 +0000 (14:08 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 17 Jul 2024 14:09:47 +0000 (14:09 +0000)
lightning/src/routing/router.rs

index 28a991a329056c94f6df791a2856d96d1d632471..71fde86d0b6964b4ad75d167c62b02001134c9e6 100644 (file)
@@ -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),