Skip to content

Commit

Permalink
Removed unnecessary clippy overrides. (#614)
Browse files Browse the repository at this point in the history
Removed unnecessary clippy overrides.
  • Loading branch information
mdashti authored Oct 11, 2023
1 parent de8df29 commit 2c7bf52
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit 2c7bf52

Please sign in to comment.