tsk-71: Simplify bearer_token() method

This commit is contained in:
2025-10-18 21:49:18 -04:00
parent 51c8b5c7b3
commit 79758b2631

View File

@@ -40,10 +40,9 @@ impl Default for Token {
} }
impl AccessToken { impl AccessToken {
/// Get the token fit for Bearer authentication
pub fn bearer_token(&self) -> String { pub fn bearer_token(&self) -> String {
let mut token: String = String::from("Bearer "); format!("Bearer {}", self.token)
token += &self.token.clone();
token
} }
} }