From 94840edee782865c3437a54ce2fbeb189ce63eb0 Mon Sep 17 00:00:00 2001 From: fmiguelgarcia Date: Mon, 19 Feb 2024 16:40:44 +0100 Subject: [PATCH] Clippy and format fixes --- core/src/asdr.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/asdr.rs b/core/src/asdr.rs index b3bbb78..f53f17b 100644 --- a/core/src/asdr.rs +++ b/core/src/asdr.rs @@ -570,10 +570,11 @@ where MultiAddress: Codec, { fn caller(&self) -> Option<&AccountId> { - self.signature.as_ref().map(|s| match s.0 { + let sig = self.signature.as_ref()?; + match sig.0 { MultiAddress::Id(ref id) => Some(id), _ => None, - }) + } } }