diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d9b12..8bdae8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,7 +77,7 @@ #### Changes * **documentation** - * #91: Build seperate docs for each release + * #91: Build separate docs for each release * #96: Add complete documentation information to README #### Fixed diff --git a/lettre/src/smtp/client/mock.rs b/lettre/src/smtp/client/mock.rs index e7989af..66c1a5a 100644 --- a/lettre/src/smtp/client/mock.rs +++ b/lettre/src/smtp/client/mock.rs @@ -103,9 +103,9 @@ mod test { #[test] fn clone_test() { let mut mock = MockStream::new(); - let mut clonned = mock.clone(); + let mut cloned = mock.clone(); mock.write(&[6, 7]).unwrap(); - assert_eq!(clonned.take_vec(), vec![6, 7]); + assert_eq!(cloned.take_vec(), vec![6, 7]); } #[test] diff --git a/lettre/src/smtp/client/net.rs b/lettre/src/smtp/client/net.rs index fab5956..af00c55 100644 --- a/lettre/src/smtp/client/net.rs +++ b/lettre/src/smtp/client/net.rs @@ -161,7 +161,7 @@ impl Timeout for NetworkStream { } } - /// Set write tiemout for IO calls + /// Set write timeout for IO calls fn set_write_timeout(&mut self, duration: Option) -> io::Result<()> { match *self { NetworkStream::Tcp(ref mut stream) => stream.set_write_timeout(duration), diff --git a/lettre/src/smtp/extension.rs b/lettre/src/smtp/extension.rs index a83e913..1ddab70 100644 --- a/lettre/src/smtp/extension.rs +++ b/lettre/src/smtp/extension.rs @@ -126,8 +126,8 @@ impl ServerInfo { continue; } - let splitted: Vec<&str> = line.split_whitespace().collect(); - match splitted[0] { + let split: Vec<&str> = line.split_whitespace().collect(); + match split[0] { "8BITMIME" => { features.insert(Extension::EightBitMime); } @@ -137,7 +137,7 @@ impl ServerInfo { "STARTTLS" => { features.insert(Extension::StartTls); } - "AUTH" => for &mechanism in &splitted[1..] { + "AUTH" => for &mechanism in &split[1..] { match mechanism { "PLAIN" => { features.insert(Extension::Authentication(Mechanism::Plain)); @@ -350,7 +350,7 @@ mod test { let server_info = ServerInfo { name: "me".to_string(), - features: features, + features, }; assert_eq!(ServerInfo::from_response(&response).unwrap(), server_info); diff --git a/lettre/src/smtp/mod.rs b/lettre/src/smtp/mod.rs index af0d7f6..bec5480 100644 --- a/lettre/src/smtp/mod.rs +++ b/lettre/src/smtp/mod.rs @@ -37,7 +37,7 @@ pub mod client; pub mod error; pub mod util; -// Registrated port numbers: +// Registered port numbers: // https://www.iana. // org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml @@ -74,7 +74,7 @@ pub enum ClientSecurity { Opportunistic(ClientTlsParameters), /// Always use `STARTTLS` Required(ClientTlsParameters), - /// Use TLS wrapped connection without negotation + /// Use TLS wrapped connection without negotiation /// Non RFC-compliant, should only be used if the server does not support STARTTLS. Wrapper(ClientTlsParameters), } @@ -83,7 +83,7 @@ pub enum ClientSecurity { #[derive(Clone, Debug, Copy)] #[cfg_attr(feature = "serde-impls", derive(Serialize, Deserialize))] pub enum ConnectionReuseParameters { - /// Unlimitied connection reuse + /// Unlimited connection reuse ReuseUnlimited, /// Maximum number of connection reuse ReuseLimited(u16), diff --git a/lettre/src/smtp/response.rs b/lettre/src/smtp/response.rs index 4be3015..c4299f1 100644 --- a/lettre/src/smtp/response.rs +++ b/lettre/src/smtp/response.rs @@ -169,7 +169,7 @@ impl Response { } } -// Parsers (originaly from tokio-smtp) +// Parsers (originally from tokio-smtp) named!( parse_code, diff --git a/lettre_email/src/lib.rs b/lettre_email/src/lib.rs index d6eb04c..aa05913 100644 --- a/lettre_email/src/lib.rs +++ b/lettre_email/src/lib.rs @@ -45,7 +45,7 @@ impl, T: Into> IntoHeader for (S, T) { } } -/// Converts an adress or an address with an alias to a `Mailbox` +/// Converts an address or an address with an alias to a `Mailbox` pub trait IntoMailbox { /// Converts to a `Mailbox` struct fn into_mailbox(self) -> Mailbox; @@ -372,7 +372,7 @@ impl PartBuilder { self.message.children.push(child); } - /// Gets builded `MimeMessage` + /// Gets built `MimeMessage` pub fn build(mut self) -> MimeMessage { self.message.update_headers(); self.message