diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-02 14:37:14 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-05 21:30:59 +0100 |
| commit | a744f4aae9ffee9dd246090bef486b09433778d0 (patch) | |
| tree | 5d1083668ec989d1fc8529a7ece60dc2bd4ec594 /src/bin/git_remote_nostr/list.rs | |
| parent | 0f3969325385f2707e359cb28d9c49c509310452 (diff) | |
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
Diffstat (limited to 'src/bin/git_remote_nostr/list.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/list.rs | 9 |
1 files changed, 2 insertions, 7 deletions
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( | |||
| 33 | repo_ref: &RepoRef, | 33 | repo_ref: &RepoRef, |
| 34 | for_push: bool, | 34 | for_push: bool, |
| 35 | ) -> Result<HashMap<String, HashMap<String, String>>> { | 35 | ) -> Result<HashMap<String, HashMap<String, String>>> { |
| 36 | let nostr_state = | 36 | let nostr_state = (get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await).ok(); |
| 37 | if let Ok(nostr_state) = get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await { | ||
| 38 | Some(nostr_state) | ||
| 39 | } else { | ||
| 40 | None | ||
| 41 | }; | ||
| 42 | 37 | ||
| 43 | let term = console::Term::stderr(); | 38 | let term = console::Term::stderr(); |
| 44 | 39 | ||
| @@ -169,7 +164,7 @@ async fn get_open_and_draft_proposals_state( | |||
| 169 | .as_str(), | 164 | .as_str(), |
| 170 | ); | 165 | ); |
| 171 | } | 166 | } |
| 172 | }; | 167 | } |
| 173 | } | 168 | } |
| 174 | } | 169 | } |
| 175 | } | 170 | } |