From efb7bd3574da9f50db018d82916811f54c1d8f38 Mon Sep 17 00:00:00 2001 From: Philipp Reiter Date: Wed, 10 Apr 2024 11:57:55 +0200 Subject: [PATCH] satisfy clippy --- wireman/src/model/history.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wireman/src/model/history.rs b/wireman/src/model/history.rs index b8e2783..ced69f8 100644 --- a/wireman/src/model/history.rs +++ b/wireman/src/model/history.rs @@ -133,9 +133,7 @@ impl HistoryModel { Logger::debug("history: no method selected"); return None; }; - let Some(path) = self.path(self.save_spot(), method).clone() else { - return None; - }; + let path = self.path(self.save_spot(), method).clone()?; if !path.exists() { return None; }