style(all): Run last rustfmt

This commit is contained in:
Alexis Mousset
2017-06-14 00:48:32 +02:00
parent bcf2110804
commit 3b46c56bbd
9 changed files with 53 additions and 54 deletions

View File

@@ -27,8 +27,7 @@ fn escape_dot(string: &str) -> String {
format!(".{}", string)
} else {
string.to_string()
}
.replace("\r.", "\r..")
}.replace("\r.", "\r..")
.replace("\n.", "\n..")
}
@@ -234,7 +233,8 @@ impl<S: Connector + Write + Read + Timeout + Debug> Client<S> {
let mut challenge_expected = 3;
while challenge_expected > 0 {
let response = try!(self.command(&base64::encode_config(&try!(mechanism.response(username,
let response =
try!(self.command(&base64::encode_config(&try!(mechanism.response(username,
password,
Some(&decoded_challenge)))
.as_bytes(),

View File

@@ -401,14 +401,13 @@ impl EmailTransport<SmtpResult> for SmtpTransport {
}
if self.state.connection_reuse_count == 0 {
try!(self.client
.connect(&self.client_info.server_addr,
try!(self.client.connect(
&self.client_info.server_addr,
match self.client_info.security_level {
SecurityLevel::EncryptedWrapper => {
Some(&self.client_info.ssl_context)
}
SecurityLevel::EncryptedWrapper => Some(&self.client_info.ssl_context),
_ => None,
}));
},
));
try!(self.client.set_timeout(self.client_info.timeout));