From e23b24904075dc77cb4ff8a8f02daf35d6bcd1fd Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 5 Nov 2026 15:32:47 -0500 Subject: [PATCH] Formatting fixeS --- src/callers/login.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/callers/login.rs b/src/callers/login.rs index 649c2c1..348c85e 100644 --- a/src/callers/login.rs +++ b/src/callers/login.rs @@ -151,7 +151,7 @@ pub mod endpoint { id: user.id, username: user.username.clone(), token: token_literal, - token_type: String::from(simodels::constants::token::TOKEN_TYPE), + token_type: simodels::constants::token::TOKEN_TYPE.to_string(), expiration: duration, }], }), @@ -203,7 +203,7 @@ pub mod endpoint { id, username, token: token_literal, - token_type: String::from(simodels::constants::token::TOKEN_TYPE), + token_type: simodels::constants::token::TOKEN_TYPE.to_string(), expiration: duration, }; @@ -262,7 +262,8 @@ pub mod endpoint { id, token: access_token, expiration: exp_dur, - token_type: String::from(simodels::constants::token::TOKEN_TYPE), + token_type: simodels::constants::token::TOKEN_TYPE + .to_string(), username, }; response.message = String::from("Successful");