[No-auto] bin/domain/mail: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
009539dfd3
commit
3036d87402
2 changed files with 15 additions and 17 deletions
|
@ -80,9 +80,7 @@ fn main() {
|
||||||
"Mail collection tool",
|
"Mail collection tool",
|
||||||
build_ui);
|
build_ui);
|
||||||
|
|
||||||
rt.cli()
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
.subcommand_name()
|
|
||||||
.map(|name| {
|
|
||||||
debug!("Call {}", name);
|
debug!("Call {}", name);
|
||||||
match name {
|
match name {
|
||||||
"import-mail" => import_mail(&rt),
|
"import-mail" => import_mail(&rt),
|
||||||
|
@ -96,7 +94,7 @@ fn main() {
|
||||||
.map(::std::process::exit);
|
.map(::std::process::exit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn import_mail(rt: &Runtime) {
|
fn import_mail(rt: &Runtime) {
|
||||||
|
|
|
@ -87,7 +87,7 @@ impl IdPathProvider for PathProvider {
|
||||||
.map(|pb| pb.into_storeid())
|
.map(|pb| pb.into_storeid())
|
||||||
.collect::<Result<Vec<_>>>()
|
.collect::<Result<Vec<_>>>()
|
||||||
)
|
)
|
||||||
.unwrap_or(Ok(Vec::new()))
|
.unwrap_or_else(|| Ok(Vec::new()))
|
||||||
.map(Some)
|
.map(Some)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue