From 2c7bf52c17df7aaf9cadd24a5b2844fad3449d4f Mon Sep 17 00:00:00 2001 From: Mohammad Dashti Date: Wed, 11 Oct 2023 10:13:23 -0700 Subject: [PATCH] Removed unnecessary `clippy` overrides. (#614) Removed unnecessary clippy overrides. --- src/server.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/server.rs b/src/server.rs index 5ccafeeb..3394cda7 100644 --- a/src/server.rs +++ b/src/server.rs @@ -455,14 +455,9 @@ impl Server { None => &user.username, }; - #[allow(clippy::match_as_ref)] - #[allow(clippy::manual_map)] - let password = match user.server_password { - Some(ref server_password) => Some(server_password), - None => match user.password { - Some(ref password) => Some(password), - None => None, - }, + let password = match user.server_password.as_ref() { + Some(server_password) => Some(server_password), + None => user.password.as_ref(), }; startup(&mut stream, username, database).await?;