From a744f4aae9ffee9dd246090bef486b09433778d0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 2 May 2025 14:37:14 +0100 Subject: chore: nix flake update update nix dependancies to latest version using default update options run `cargo clippy --fix` and `cargo fmt` to fix new clippy errors --- src/bin/git_remote_nostr/list.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/bin/git_remote_nostr/list.rs') diff --git a/src/bin/git_remote_nostr/list.rs b/src/bin/git_remote_nostr/list.rs index b802a4a..eba573b 100644 --- a/src/bin/git_remote_nostr/list.rs +++ b/src/bin/git_remote_nostr/list.rs @@ -33,12 +33,7 @@ pub async fn run_list( repo_ref: &RepoRef, for_push: bool, ) -> Result>> { - let nostr_state = - if let Ok(nostr_state) = get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await { - Some(nostr_state) - } else { - None - }; + let nostr_state = (get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await).ok(); let term = console::Term::stderr(); @@ -169,7 +164,7 @@ async fn get_open_and_draft_proposals_state( .as_str(), ); } - }; + } } } } -- cgit v1.2.3