Remove the with_code method from response

This commit is contained in:
Alexis Mousset
2014-11-09 23:52:20 +01:00
parent 808212a881
commit 5cb8b69fb9
9 changed files with 51 additions and 67 deletions

View File

@@ -100,7 +100,10 @@ impl Command {
}
}
/// TODO
/// Tests if the command was successful
///
/// Returns `Ok` if the given response is considered successful for the `Command`,
/// `Err` otherwise
pub fn test_success(&self, response: Response) -> SmtpResult {
let success = match *self {
Connect => vec![220],