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/ngit/sub_commands/logout.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/ngit/sub_commands/logout.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/logout.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/ngit/sub_commands/logout.rs b/src/bin/ngit/sub_commands/logout.rs index 2df96c8..da445b4 100644 --- a/src/bin/ngit/sub_commands/logout.rs +++ b/src/bin/ngit/sub_commands/logout.rs | |||
| @@ -11,12 +11,7 @@ use crate::{ | |||
| 11 | 11 | ||
| 12 | pub async fn launch() -> Result<()> { | 12 | pub async fn launch() -> Result<()> { |
| 13 | let git_repo_result = Repo::discover().context("failed to find a git repository"); | 13 | let git_repo_result = Repo::discover().context("failed to find a git repository"); |
| 14 | let git_repo = { | 14 | let git_repo = { git_repo_result.ok() }; |
| 15 | match git_repo_result { | ||
| 16 | Ok(git_repo) => Some(git_repo), | ||
| 17 | Err(_) => None, | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | logout(git_repo.as_ref()).await | 15 | logout(git_repo.as_ref()).await |
| 21 | } | 16 | } |
| 22 | 17 | ||