From 1228663b3e04765c6f8a243d76a1c09ef1d926bc Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 29 Jun 2018 17:44:33 -0400 Subject: [PATCH] Fix additional 1.22 rustc warning --- src/ln/channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ln/channel.rs b/src/ln/channel.rs index 1c17cb1f9..26a3d2061 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -1314,7 +1314,7 @@ impl Channel { /// Removes an outbound HTLC which has been commitment_signed by the remote end #[inline] fn mark_outbound_htlc_removed(&mut self, htlc_id: u64, check_preimage: Option<[u8; 32]>, fail_reason: Option) -> Result<[u8; 32], HandleError> { - for mut htlc in self.pending_htlcs.iter_mut() { + for htlc in self.pending_htlcs.iter_mut() { if htlc.outbound && htlc.htlc_id == htlc_id { match check_preimage { None => {}, -- 2.39.5