[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",
|
||||
build_ui);
|
||||
|
||||
rt.cli()
|
||||
.subcommand_name()
|
||||
.map(|name| {
|
||||
if let Some(name) = rt.cli().subcommand_name() {
|
||||
debug!("Call {}", name);
|
||||
match name {
|
||||
"import-mail" => import_mail(&rt),
|
||||
|
@ -96,7 +94,7 @@ fn main() {
|
|||
.map(::std::process::exit);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
fn import_mail(rt: &Runtime) {
|
||||
|
|
|
@ -87,7 +87,7 @@ impl IdPathProvider for PathProvider {
|
|||
.map(|pb| pb.into_storeid())
|
||||
.collect::<Result<Vec<_>>>()
|
||||
)
|
||||
.unwrap_or(Ok(Vec::new()))
|
||||
.unwrap_or_else(|| Ok(Vec::new()))
|
||||
.map(Some)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue