style(all): Style improvement with clippy

This commit is contained in:
Alexis Mousset
2017-07-16 18:41:33 +02:00
parent 7fc0ed5c56
commit 1047e84962
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ macro_rules! return_err (
})
);
#[cfg_attr(feature = "cargo-clippy", allow(new_without_default_derive))]
impl<S: Write + Read> Client<S> {
/// Creates a new SMTP client
///

View File

@@ -479,7 +479,7 @@ impl EmailTransport<SmtpResult> for SmtpTransport {
try_smtp!(
self.client.auth(
mechanism,
&self.client_info.credentials.as_ref().unwrap(),
self.client_info.credentials.as_ref().unwrap(),
),
self
);