Skip to content

Commit 07e927c

Browse files
authored
Merge pull request #360 from TheBlueMatt/2019-07-new-warnings
Fix unused variable introduced in my changes in bdbf566
2 parents 60bf1fe + 1db907f commit 07e927c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub(super) fn build_onion_payloads(route: &Route, starting_htlc_offset: u32) ->
114114
let mut last_short_channel_id = 0;
115115
let mut res: Vec<msgs::OnionHopData> = Vec::with_capacity(route.hops.len());
116116

117-
for (idx, hop) in route.hops.iter().enumerate().rev() {
117+
for hop in route.hops.iter().rev() {
118118
// First hop gets special values so that it can check, on receipt, that everything is
119119
// exactly as it should be (and the next hop isn't trying to probe to find out if we're
120120
// the intended recipient).

0 commit comments

Comments
 (0)