diff --git a/src/auth.rs b/src/auth.rs index 7c1490b..5ab5119 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -7,7 +7,6 @@ impl AuthToken { pub fn access(&self) -> &str { &self.0 } - } pub fn get_token_from_command(command: &str) -> Result { diff --git a/src/provider/github.rs b/src/provider/github.rs index 42a75cf..094b860 100644 --- a/src/provider/github.rs +++ b/src/provider/github.rs @@ -1,12 +1,12 @@ use serde::Deserialize; +use super::auth; use super::escape; use super::ApiErrorResponse; use super::Filter; use super::JsonError; use super::Project; use super::Provider; -use super::auth; const PROVIDER_NAME: &str = "github"; const ACCEPT_HEADER_JSON: &str = "application/vnd.github.v3+json"; diff --git a/src/provider/gitlab.rs b/src/provider/gitlab.rs index 2dc2132..fc4b216 100644 --- a/src/provider/gitlab.rs +++ b/src/provider/gitlab.rs @@ -1,12 +1,12 @@ use serde::Deserialize; +use super::auth; use super::escape; use super::ApiErrorResponse; use super::Filter; use super::JsonError; use super::Project; use super::Provider; -use super::auth; const PROVIDER_NAME: &str = "gitlab"; const ACCEPT_HEADER_JSON: &str = "application/json";