style(all): Run last rustfmt
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user