Skip to content

Commit

Permalink
chore: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 1, 2024
1 parent 33160d4 commit 39a7464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ impl Mechanism {
let decoded_challenge =
challenge.ok_or(Error::Client("This mechanism does expect a challenge"))?;

if vec!["User Name", "Username:", "Username"].contains(&decoded_challenge) {
if ["User Name", "Username:", "Username"].contains(&decoded_challenge) {
return Ok(credentials.authentication_identity.to_string());
}

if vec!["Password", "Password:"].contains(&decoded_challenge) {
if ["Password", "Password:"].contains(&decoded_challenge) {
return Ok(credentials.secret.to_string());
}

Expand Down
2 changes: 1 addition & 1 deletion src/smtp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl<S: BufRead + Write + Unpin> SmtpTransport<S> {
// Log the message
debug!(
"status=sent ({})",
result.message.get(0).unwrap_or(&"no response".to_string())
result.message.first().unwrap_or(&"no response".to_string())
);
}

Expand Down

0 comments on commit 39a7464

Please sign in to comment.