From b551556e159446de0ec6a831cc36ae12d3e91066 Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 22 Mar 2024 19:53:05 +0800 Subject: [PATCH] clippy Signed-off-by: tison --- src/auth/src/user_provider.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/src/user_provider.rs b/src/auth/src/user_provider.rs index ef95056194..e27c2a28a9 100644 --- a/src/auth/src/user_provider.rs +++ b/src/auth/src/user_provider.rs @@ -119,14 +119,14 @@ fn authenticate_with_credential( msg: "blank password" } ); - return if save_pwd == pwd.expose_secret().as_bytes() { + if save_pwd == pwd.expose_secret().as_bytes() { Ok(DefaultUserInfo::with_name(username)) } else { UserPasswordMismatchSnafu { username: username.to_string(), } .fail() - }; + } } Password::MysqlNativePassword(auth_data, salt) => { auth_mysql(auth_data, salt, username, save_pwd)