Remove unused variables

This commit is contained in:
Matthias Beyer 2017-08-30 23:19:40 +02:00
parent fabb990336
commit 00b8d5192c
1 changed files with 2 additions and 7 deletions

View File

@ -61,7 +61,7 @@ fn import_mail(rt: &Runtime) {
let scmd = rt.cli().subcommand_matches("import-mail").unwrap(); let scmd = rt.cli().subcommand_matches("import-mail").unwrap();
let path = scmd.value_of("path").unwrap(); // enforced by clap let path = scmd.value_of("path").unwrap(); // enforced by clap
Mail::import_from_path(rt.store(), path) let _ = Mail::import_from_path(rt.store(), path)
.map_err_trace() .map_err_trace()
.map_info_str("Ok"); .map_info_str("Ok");
} }
@ -70,11 +70,6 @@ fn list(rt: &Runtime) {
use libimagmail::error::MailErrorKind as MEK; use libimagmail::error::MailErrorKind as MEK;
use libimagmail::error::MapErrInto; use libimagmail::error::MapErrInto;
let scmd = rt.cli().subcommand_matches("list").unwrap();
let do_check_dead = scmd.is_present("check-dead");
let do_check_changed = scmd.is_present("check-changed");
let do_check_changed_content = scmd.is_present("check-changed-content");
let do_check_changed_permiss = scmd.is_present("check-changed-permissions");
let store = rt.store(); let store = rt.store();
let iter = match store.retrieve_for_module("ref") { let iter = match store.retrieve_for_module("ref") {
@ -140,7 +135,7 @@ fn list(rt: &Runtime) {
} }
fn mail_store(rt: &Runtime) { fn mail_store(rt: &Runtime) {
let scmd = rt.cli().subcommand_matches("mail-store").unwrap(); let _ = rt.cli().subcommand_matches("mail-store").unwrap();
error!("This feature is currently not implemented."); error!("This feature is currently not implemented.");
unimplemented!() unimplemented!()
} }