tsk-71: Simplify bearer_token() method
This commit is contained in:
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user