From 2219a948c538b59230da3505087506ccde78ae87 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Thu, 1 Jun 2023 13:31:47 +0200
Subject: [PATCH] fix(!115): remove the `_ => {}` matching pattern

---
 pallets/duniter-wot/src/lib.rs | 4 ++--
 runtime/common/src/handlers.rs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pallets/duniter-wot/src/lib.rs b/pallets/duniter-wot/src/lib.rs
index cf4aaf938..9f8d1d2ae 100644
--- a/pallets/duniter-wot/src/lib.rs
+++ b/pallets/duniter-wot/src/lib.rs
@@ -335,8 +335,8 @@ impl<T: Config<I>, I: 'static> pallet_identity::traits::OnIdtyChange<T> for Pall
                 }
             }
             pallet_identity::Event::IdtyConfirmed { .. }
-            | pallet_identity::Event::IdtyChangedOwnerKey { .. } => {}
-            _ => {} // TODO: why is it necessary?
+            | pallet_identity::Event::IdtyChangedOwnerKey { .. }
+            | pallet_identity::Event::__Ignore(_, _) => {}
         }
         Weight::zero()
     }
diff --git a/runtime/common/src/handlers.rs b/runtime/common/src/handlers.rs
index 45cc8f433..8b72a50f3 100644
--- a/runtime/common/src/handlers.rs
+++ b/runtime/common/src/handlers.rs
@@ -67,8 +67,8 @@ where
             }
             pallet_identity::Event::IdtyCreated { .. }
             | pallet_identity::Event::IdtyConfirmed { .. }
-            | pallet_identity::Event::IdtyRemoved { .. } => {}
-            _ => {} // TODO: why is it necessary?
+            | pallet_identity::Event::IdtyRemoved { .. }
+            | pallet_identity::Event::__Ignore(_, _) => {}
         }
         Weight::zero()
     }
-- 
GitLab