Skip to content

Commit e0fd96e

Browse files
committed
f drop uneccessary type annotations, i guess?t
1 parent 1d22829 commit e0fd96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/routing/router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,8 +1746,8 @@ where L::Target: Logger {
17461746
});
17471747
for idx in 0..(selected_route.len() - 1) {
17481748
if idx + 1 >= selected_route.len() { break; }
1749-
if iter_equal(selected_route[idx ].hops.iter().map(|h: &(PathBuildingHop<'_>, _)| (h.0.candidate.short_channel_id(), h.0.node_id)),
1750-
selected_route[idx + 1].hops.iter().map(|h: &(PathBuildingHop<'_>, _)| (h.0.candidate.short_channel_id(), h.0.node_id))) {
1749+
if iter_equal(selected_route[idx ].hops.iter().map(|h| (h.0.candidate.short_channel_id(), h.0.node_id)),
1750+
selected_route[idx + 1].hops.iter().map(|h| (h.0.candidate.short_channel_id(), h.0.node_id))) {
17511751
let new_value = selected_route[idx].get_value_msat() + selected_route[idx + 1].get_value_msat();
17521752
selected_route[idx].update_value_and_recompute_fees(new_value);
17531753
selected_route.remove(idx + 1);

0 commit comments

Comments
 (0)