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/ngit/sub_commands/export_keys.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/bin/ngit/sub_commands/export_keys.rs') diff --git a/src/bin/ngit/sub_commands/export_keys.rs b/src/bin/ngit/sub_commands/export_keys.rs index 45b1b89..4a32a3a 100644 --- a/src/bin/ngit/sub_commands/export_keys.rs +++ b/src/bin/ngit/sub_commands/export_keys.rs @@ -12,12 +12,7 @@ use crate::git::Repo; pub async fn launch() -> Result<()> { let git_repo_result = Repo::discover().context("failed to find a git repository"); - let git_repo = { - match git_repo_result { - Ok(git_repo) => Some(git_repo), - Err(_) => None, - } - }; + let git_repo = { git_repo_result.ok() }; if let Ok((signer_info, source)) = get_signer_info(&git_repo.as_ref(), &None, &None, &None) { if let Ok((_, user_ref, source)) = load_existing_login( -- cgit v1.2.3