From 7291f7470b0ad293bad703b2fe0688382ffde128 Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Thu, 7 Nov 2024 11:17:22 +0100 Subject: [PATCH] fix clippy --- src/cln_plugin/mod.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cln_plugin/mod.rs b/src/cln_plugin/mod.rs index 22fbe0a..b437761 100644 --- a/src/cln_plugin/mod.rs +++ b/src/cln_plugin/mod.rs @@ -814,12 +814,9 @@ where // Send to notification to the wildcard // subscription "*" it it exists - match &self.wildcard_subscription { - Some(cb) => { - let call = cb(plugin.clone(), params.clone()); - tokio::spawn(async move { call.await.unwrap() }); - } - None => {} + if let Some(cb) = &self.wildcard_subscription { + let call = cb(plugin.clone(), params.clone()); + tokio::spawn(async move { call.await.unwrap() }); }; // Find the appropriate callback and process it