From 0a430edfdcdb5bcbacae3d70cae927157d7b1efb Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 30 Nov 2023 14:38:40 -0500 Subject: [PATCH] clippy: Fix (new) warning --- src/app/state/mod.rs | 3 ++- src/main.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/state/mod.rs b/src/app/state/mod.rs index 92cc0c2c..07c78511 100644 --- a/src/app/state/mod.rs +++ b/src/app/state/mod.rs @@ -94,7 +94,8 @@ impl AppState { let flake_url = self.flake_url.read().clone(); use_future(cx, (&flake_url,), |(flake_url,)| async move { if let Some(flake_url) = flake_url { - if let Some(cached_flake) = self.flake_cache.read().get(&flake_url) { + let maybe_flake = self.flake_cache.read().get(&flake_url); + if let Some(cached_flake) = maybe_flake { Datum::set_value(self.flake, Ok(cached_flake)).await; } else { self.flake_refresh.write().request_refresh(); diff --git a/src/main.rs b/src/main.rs index 079d8d7d..9377beeb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ #![feature(let_chains)] use dioxus_desktop::{LogicalSize, WindowBuilder}; -use dioxus_std::storage::set_dir_name; mod app; mod cli;