change: Improve consistency in string declaration whenever suitable

This commit is contained in:
SinTan1729
2023-05-23 17:58:57 -05:00
parent ff0a17e57b
commit 7b59a9aa5c
4 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ fn check(token: Option<String>) -> bool {
}
pub fn gen_token() -> String {
let token_text = "session-token".to_string();
let token_text = String::from("session-token");
let time = SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.expect("Time went backwards!")