Merge pull request #166 from amousset/run-clippy

style(all): Style improvement with clippy
This commit is contained in:
Alexis Mousset
2017-07-16 18:46:45 +02:00
committed by GitHub
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
);