From 1aa1d69461c90822672adb0b11ce2419ddf63cf2 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 13 Jun 2022 18:25:15 -0500 Subject: [PATCH] Remove unnecessary identifiers from match pattern --- lightning/src/routing/gossip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/routing/gossip.rs b/lightning/src/routing/gossip.rs index bd2b9d06e..0699333ec 100644 --- a/lightning/src/routing/gossip.rs +++ b/lightning/src/routing/gossip.rs @@ -250,7 +250,7 @@ where C::Target: chain::Access, L::Target: Logger impl EventHandler for NetworkGraph where L::Target: Logger { fn handle_event(&self, event: &Event) { - if let Event::PaymentPathFailed { payment_hash: _, rejected_by_dest: _, network_update, .. } = event { + if let Event::PaymentPathFailed { network_update, .. } = event { if let Some(network_update) = network_update { match *network_update { NetworkUpdate::ChannelUpdateMessage { ref msg } => { -- 2.39.5