]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unnecessary identifiers from match pattern
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 13 Jun 2022 23:25:15 +0000 (18:25 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 13 Jun 2022 23:28:01 +0000 (18:28 -0500)
lightning/src/routing/gossip.rs

index bd2b9d06eb04d501573ce36467ec1b329f0c8cde..0699333ec2335821c7e459279b11c6e970c319ce 100644 (file)
@@ -250,7 +250,7 @@ where C::Target: chain::Access, L::Target: Logger
 
 impl<L: Deref> EventHandler for NetworkGraph<L> where L::Target: Logger {
        fn handle_event(&self, event: &Event) {
 
 impl<L: Deref> EventHandler for NetworkGraph<L> 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 } => {
                        if let Some(network_update) = network_update {
                                match *network_update {
                                        NetworkUpdate::ChannelUpdateMessage { ref msg } => {