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 {