We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d25942f commit 2324361Copy full SHA for 2324361
lightning/src/offers/merkle.rs
@@ -444,10 +444,7 @@ fn build_tree_with_disclosure(
444
break;
445
}
446
447
- let left_positions: Vec<_> = (0..num_leaves).step_by(step).collect();
448
- let right_positions: Vec<_> = (offset..num_leaves).step_by(step).collect();
449
-
450
- for (&left_pos, &right_pos) in left_positions.iter().zip(right_positions.iter()) {
+ for (left_pos, right_pos) in (0..num_leaves).step_by(step).zip((offset..num_leaves).step_by(step)) {
451
let left_hash = hashes[left_pos];
452
let right_hash = hashes[right_pos];
453
let left_incl = is_included[left_pos];
0 commit comments