summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-11-17 20:25:35 +0100
committerCyborus <cyborus@cyborus.xyz>2023-11-17 20:25:35 +0100
commit66dd7096e41323d734a629d25f72a42bef6c3aaf (patch)
treebf0406977ee0f0179b98871df1a444c2b9bbbd9e
parentMerge pull request 'improve organization' (#2) from organize into main (diff)
downloadforgejo-cli-66dd7096e41323d734a629d25f72a42bef6c3aaf.tar.xz
forgejo-cli-66dd7096e41323d734a629d25f72a42bef6c3aaf.zip
fmt
-rw-r--r--src/auth.rs4
-rw-r--r--src/main.rs2
-rw-r--r--src/repo.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/auth.rs b/src/auth.rs
index b9f4e49..44bf7b8 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -39,7 +39,8 @@ impl AuthCommand {
None => crate::readline("new key: ").await?,
};
if keys.hosts.get(&user).is_none() {
- keys.hosts.insert(host, crate::keys::LoginInfo::new(user, key));
+ keys.hosts
+ .insert(host, crate::keys::LoginInfo::new(user, key));
} else {
println!("key for {} already exists", host);
}
@@ -56,4 +57,3 @@ impl AuthCommand {
Ok(())
}
}
-
diff --git a/src/main.rs b/src/main.rs
index 52cfa4e..e53b7d1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,8 +9,8 @@ use url::Url;
mod keys;
use keys::*;
-mod repo;
mod auth;
+mod repo;
#[derive(Parser, Debug)]
pub struct App {
diff --git a/src/repo.rs b/src/repo.rs
index 863987b..f82ee97 100644
--- a/src/repo.rs
+++ b/src/repo.rs
@@ -1,6 +1,6 @@
use clap::Subcommand;
-use url::Url;
use forgejo_api::CreateRepoOption;
+use url::Url;
#[derive(Subcommand, Clone, Debug)]
pub enum RepoCommand {