Remove last panics

This commit is contained in:
Alexis Mousset
2015-07-23 00:48:37 +02:00
parent c2506b47fc
commit 8d60068831
6 changed files with 74 additions and 62 deletions

View File

@@ -12,7 +12,7 @@ use smtp::email::EmailBuilder;
fn main() {
env_logger::init().unwrap();
let sender = Arc::new(Mutex::new(SenderBuilder::localhost().hello_name("localhost")
let sender = Arc::new(Mutex::new(SenderBuilder::localhost().unwrap().hello_name("localhost")
.enable_connection_reuse(true).build()));
let mut threads = Vec::new();