Skip to content

Commit bd53ce2

Browse files
committed
lint code
1 parent 090b965 commit bd53ce2

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
@@ -414,7 +414,7 @@ impl Readable for Route {
414414
let blinded_tails = blinded_tails.unwrap_or(Vec::new());
415415
if blinded_tails.len() != 0 {
416416
if blinded_tails.len() != paths.len() { return Err(DecodeError::InvalidValue) }
417-
for (mut path, blinded_tail_opt) in paths.iter_mut().zip(blinded_tails.into_iter()) {
417+
for (path, blinded_tail_opt) in paths.iter_mut().zip(blinded_tails.into_iter()) {
418418
path.blinded_tail = blinded_tail_opt;
419419
}
420420
}
@@ -993,7 +993,7 @@ impl<'a> PaymentPath<'a> {
993993
cur_hop_fees_msat = self.hops.get(i + 1).unwrap().0.hop_use_fee_msat;
994994
}
995995

996-
let mut cur_hop = &mut self.hops.get_mut(i).unwrap().0;
996+
let cur_hop = &mut self.hops.get_mut(i).unwrap().0;
997997
cur_hop.next_hops_fee_msat = total_fee_paid_msat;
998998
// Overpay in fees if we can't save these funds due to htlc_minimum_msat.
999999
// We try to account for htlc_minimum_msat in scoring (add_entry!), so that nodes don't

0 commit comments

Comments
 (0)