diff --git a/src/token.rs b/src/token.rs index 3934840..e92d13a 100644 --- a/src/token.rs +++ b/src/token.rs @@ -43,18 +43,18 @@ impl AccessToken { pub fn bearer_token(&self) -> String { let mut token: String = String::from("Bearer "); token += &self.token.clone(); - return token; + token } } impl Token { pub fn _to_json(&self) -> Result { - return serde_json::to_string_pretty(&self); + serde_json::to_string_pretty(&self) } // TODO: Implement pub fn token_expired(&self) -> bool { - return false; + false } // TODO: Implement @@ -62,9 +62,9 @@ impl Token { let extracted_token: String = String::from("Token"); if extracted_token == *des_scope { - return true; + true } - return false; + false } }