Token fix
Some checks failed
Rust Build / Check (pull_request) Failing after 24s
Rust Build / Test Suite (pull_request) Failing after 24s
Rust Build / Rustfmt (pull_request) Successful in 25s
Rust Build / Clippy (pull_request) Failing after 27s
Rust Build / build (pull_request) Failing after 25s

This commit is contained in:
2025-03-21 21:57:04 -04:00
parent d9bc2c5d09
commit c1761d5d5e

View File

@@ -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<String, serde_json::Error> {
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
}
}