]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix additional 1.22 rustc warning
authorMatt Corallo <git@bluematt.me>
Fri, 29 Jun 2018 21:44:33 +0000 (17:44 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 29 Jun 2018 21:44:55 +0000 (17:44 -0400)
src/ln/channel.rs

index 1c17cb1f9c1f18613a7fe1625119a9c4a91a26ba..26a3d2061be644cd90292ca680577830fe559b2c 100644 (file)
@@ -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<HTLCFailReason>) -> 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 => {},