From: Matt Corallo Date: Wed, 6 Dec 2023 01:19:17 +0000 (+0000) Subject: Fix indentation in `router.rs` broken in a1d15ac1926f70aa5ab4f6686f X-Git-Tag: v0.0.119~18^2~6 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e9bad1b95c77387d81508b958288b46c718b28ec;p=rust-lightning Fix indentation in `router.rs` broken in a1d15ac1926f70aa5ab4f6686f --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 227d3f6fd..7dc3be1cb 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -2747,8 +2747,8 @@ where L::Target: Logger { }); for idx in 0..(selected_route.len() - 1) { if idx + 1 >= selected_route.len() { break; } - if iter_equal(selected_route[idx].hops.iter().map(|h| (h.0.candidate.id(), h.0.candidate.target())), - selected_route[idx + 1].hops.iter().map(|h| (h.0.candidate.id(), h.0.candidate.target()))) { + if iter_equal(selected_route[idx ].hops.iter().map(|h| (h.0.candidate.id(), h.0.candidate.target())), + selected_route[idx + 1].hops.iter().map(|h| (h.0.candidate.id(), h.0.candidate.target()))) { let new_value = selected_route[idx].get_value_msat() + selected_route[idx + 1].get_value_msat(); selected_route[idx].update_value_and_recompute_fees(new_value); selected_route.remove(idx + 1);