Fix additional 1.22 rustc warning

This commit is contained in:
Matt Corallo 2018-06-29 17:44:33 -04:00
parent 98e5c5e4d3
commit 1228663b3e

View file

@ -1314,7 +1314,7 @@ impl Channel {
/// Removes an outbound HTLC which has been commitment_signed by the remote end /// Removes an outbound HTLC which has been commitment_signed by the remote end
#[inline] #[inline]
fn mark_outbound_htlc_removed(&mut self, htlc_id: u64, check_preimage: Option<[u8; 32]>, fail_reason: Option<HTLCFailReason>) -> Result<[u8; 32], HandleError> { 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 { if htlc.outbound && htlc.htlc_id == htlc_id {
match check_preimage { match check_preimage {
None => {}, None => {},