Skip to content

Commit

Permalink
clippy: Fix (new) warning
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 30, 2023
1 parent fba784a commit 0a430ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![feature(let_chains)]
use dioxus_desktop::{LogicalSize, WindowBuilder};
use dioxus_std::storage::set_dir_name;

mod app;
mod cli;
Expand Down

0 comments on commit 0a430ed

Please sign in to comment.