From e910e7c485788a36592e2e251f6366c89beec814 Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Tue, 17 Dec 2024 12:37:08 -0800 Subject: [PATCH] fix clippy --- src/core/src/signature.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/src/signature.rs b/src/core/src/signature.rs index f00a5f7b0..956b46493 100644 --- a/src/core/src/signature.rs +++ b/src/core/src/signature.rs @@ -446,11 +446,7 @@ fn default_version() -> f64 { impl Signature { pub fn name(&self) -> Option { - if let Some(name) = &self.name { - Some(name.clone()) - } else { - None - } + self.name.as_ref().map(|name| name.clone()) } // return name, if not None; or "" if None.