Little refactoring

This commit is contained in:
Alexis Mousset
2016-03-25 21:54:15 +01:00
parent 2e3f82b98a
commit dab8b111d3
2 changed files with 2 additions and 6 deletions

View File

@@ -184,11 +184,7 @@ impl ResponseParser {
if line.len() > 4 {
self.message.push(line[4..].to_string());
if line.as_bytes()[3] == '-' as u8 {
Ok(true)
} else {
Ok(false)
}
Ok(line.as_bytes()[3] == '-' as u8)
} else {
Ok(false)
}

View File

@@ -6,7 +6,7 @@ use transport::smtp::response::{Category, Code, Response, Severity};
use transport::EmailTransport;
use email::SendableEmail;
/// This transport does nothing exept logging the message enveloppe
/// This transport does nothing except logging the message enveloppe
pub struct StubEmailTransport;
impl EmailTransport for StubEmailTransport {