Making some changes to address warnings

Constants changed
This commit is contained in:
phoenix committed 2025-03-16 15:15:31 -04:00
1 parent 7f5f546f65
commit e497ce11e0
4 files changed
+23 -18

No files matched your search

+7 -1
View File
@@ -58,7 +58,13 @@ impl Token {
}
// TODO: Implement
pub fn contains_scope(&self, des_scope: String) -> bool {
pub fn contains_scope(&self, des_scope: &String) -> bool {
let extracted_token: String = String::from("Token");
if extracted_token == *des_scope {
return true;
}
return false;
}
}