diff options
Diffstat (limited to 'cli/auth_tokens.rs')
-rw-r--r-- | cli/auth_tokens.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/auth_tokens.rs b/cli/auth_tokens.rs index 360a7e6c7..6c3ed3846 100644 --- a/cli/auth_tokens.rs +++ b/cli/auth_tokens.rs @@ -20,9 +20,9 @@ pub struct AuthToken { impl fmt::Display for AuthToken { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match &self.token { - AuthTokenData::Bearer(token) => write!(f, "Bearer {}", token), + AuthTokenData::Bearer(token) => write!(f, "Bearer {token}"), AuthTokenData::Basic { username, password } => { - let credentials = format!("{}:{}", username, password); + let credentials = format!("{username}:{password}"); write!(f, "Basic {}", base64::encode(credentials)) } } |