From: Matt Corallo Date: Fri, 29 Jun 2018 21:44:33 +0000 (-0400) Subject: Fix additional 1.22 rustc warning X-Git-Tag: v0.0.12~397^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=1228663b3e04765c6f8a243d76a1c09ef1d926bc;p=rust-lightning Fix additional 1.22 rustc warning --- 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 => {},