From 7bd354429ab4f8ad675f94e2e0025cea1f3559fc Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sat, 10 Feb 2024 18:32:58 +0000 Subject: [PATCH] Make UserAuthenticator::create_user_token() take &self --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.rs b/src/auth.rs index f8d4224..fc36db1 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -46,7 +46,7 @@ impl UserAuthenticator { #[instrument] pub async fn create_user_token( - &mut self, + &self, username: &str, password: &Password, ) -> Result {