style(all): Fix typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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<Duration>) -> io::Result<()> {
|
||||
match *self {
|
||||
NetworkStream::Tcp(ref mut stream) => stream.set_write_timeout(duration),
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -169,7 +169,7 @@ impl Response {
|
||||
}
|
||||
}
|
||||
|
||||
// Parsers (originaly from tokio-smtp)
|
||||
// Parsers (originally from tokio-smtp)
|
||||
|
||||
named!(
|
||||
parse_code<Code>,
|
||||
|
||||
@@ -45,7 +45,7 @@ impl<S: Into<String>, T: Into<String>> 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
|
||||
|
||||
Reference in New Issue
Block a user