diff --git a/src/client/server_info.rs b/src/client/server_info.rs index 4c5def6..82db714 100644 --- a/src/client/server_info.rs +++ b/src/client/server_info.rs @@ -30,11 +30,11 @@ pub struct ServerInfo { impl Display for ServerInfo { fn fmt(&self, f: &mut Formatter) -> fmt::Result { write!(f, "{} with {}", - self.name, - match self.esmtp_features.is_empty() { - true => "no supported features".to_string(), - false => format! ("{:?}", self.esmtp_features), - } + self.name, + match self.esmtp_features.is_empty() { + true => "no supported features".to_string(), + false => format! ("{:?}", self.esmtp_features), + } ) } } @@ -42,7 +42,7 @@ impl Display for ServerInfo { impl ServerInfo { /// Checks if the server supports an ESMTP feature pub fn supports_feature(&self, keyword: Extension) -> Option { - for feature in self.esmtp_features.iter() { + for feature in self.esmtp_features { if keyword.same_extension_as(feature) { return Some(*feature); }