Skip to content

Commit 39a7464

Browse files
committed
chore: clippy fixes
1 parent 33160d4 commit 39a7464

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/authentication.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ impl Mechanism {
103103
let decoded_challenge =
104104
challenge.ok_or(Error::Client("This mechanism does expect a challenge"))?;
105105

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

110-
if vec!["Password", "Password:"].contains(&decoded_challenge) {
110+
if ["Password", "Password:"].contains(&decoded_challenge) {
111111
return Ok(credentials.secret.to_string());
112112
}
113113

src/smtp_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl<S: BufRead + Write + Unpin> SmtpTransport<S> {
262262
// Log the message
263263
debug!(
264264
"status=sent ({})",
265-
result.message.get(0).unwrap_or(&"no response".to_string())
265+
result.message.first().unwrap_or(&"no response".to_string())
266266
);
267267
}
268268

0 commit comments

Comments
 (0)