From 4e14e383b49889fc12492208c7d8a898a87a6c65 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 7 Apr 2022 19:00:36 +0200 Subject: [PATCH] cargo clippy --- src/controllers/admin_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/admin_controller.rs b/src/controllers/admin_controller.rs index aa1440f..4da9bcf 100644 --- a/src/controllers/admin_controller.rs +++ b/src/controllers/admin_controller.rs @@ -110,7 +110,7 @@ pub async fn users_route(user: CurrentUser, users: web::Data>, success = Some(match is_creating { true => format!("User {} was successfully updated!", user.full_name()), false => format!("Failed to update {}'s account!", user.full_name()) - }.to_string()); + }); if let Some(pass) = new_password { danger = Some(format!("{}'s temporary time password is {}", user.full_name(), pass));