Also silence warnings in test code

We can be a bit more liberal with .unwrap() here.
This commit is contained in:
Floris Bruynooghe
2019-07-21 12:03:04 +02:00
parent 31d2bc7401
commit 68888f6d1f
2 changed files with 20 additions and 12 deletions

View File

@@ -86,8 +86,9 @@ fn main() {
let args = std::env::args().collect::<Vec<String>>();
assert_eq!(args.len(), 2, "missing password");
let pw = args[1].clone();
ctx.set_config(config::Config::Addr, Some("d@testrun.org"));
ctx.set_config(config::Config::MailPw, Some(&pw));
ctx.set_config(config::Config::Addr, Some("d@testrun.org"))
.unwrap();
ctx.set_config(config::Config::MailPw, Some(&pw)).unwrap();
dc_configure(&ctx);
thread::sleep(duration);