Skip to content

Commit b5c3785

Browse files
committed
chore: apply beta clippy fixes
1 parent 1b79a36 commit b5c3785

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ mod test {
103103
"For explanation visit https://www.gmx.net/mail/senderguidelines?c=bl".to_string(),
104104
],
105105
));
106-
assert_eq!(format!("{}", err), "permanent: gmx.net (mxgmx117) Nemesis ESMTP Service not available; No SMTP service; IP address is block listed.; For explanation visit https://www.gmx.net/mail/senderguidelines?c=bl".to_string());
106+
assert_eq!(format!("{err}"), "permanent: gmx.net (mxgmx117) Nemesis ESMTP Service not available; No SMTP service; IP address is block listed.; For explanation visit https://www.gmx.net/mail/senderguidelines?c=bl".to_string());
107107
}
108108
}

src/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ mod test {
336336
let res = parse_response(raw_response);
337337
match res {
338338
Err(nom::Err::Incomplete(_)) => {}
339-
_ => panic!("Expected incomplete response, got {:?}", res),
339+
_ => panic!("Expected incomplete response, got {res:?}"),
340340
}
341341
}
342342

src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<S: BufRead + Write + Unpin> SmtpStream<S> {
9595
}
9696
}
9797

98-
Err(std::io::Error::new(std::io::ErrorKind::Other, "incomplete").into())
98+
Err(std::io::Error::other("incomplete").into())
9999
}
100100

101101
/// Sends the message content.

0 commit comments

Comments
 (0)