[No-auto] bin/domain/bookmark: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:32:52 +02:00 committed by Matthias Beyer
parent 42f6a3040d
commit 7a97c02584

View file

@ -76,9 +76,7 @@ fn main() {
"Bookmark collection tool",
build_ui);
rt.cli()
.subcommand_name()
.map(|name| {
if let Some(name) = rt.cli().subcommand_name() {
debug!("Call {}", name);
match name {
"add" => add(&rt),
@ -93,7 +91,7 @@ fn main() {
.map(::std::process::exit);
},
}
});
}
}
fn add(rt: &Runtime) {
@ -143,7 +141,7 @@ fn collection(rt: &Runtime) {
.map_err_trace_exit_unwrap();
}
if let Ok(_) = BookmarkCollectionStore::delete(rt.store(), &name) {
if BookmarkCollectionStore::delete(rt.store(), &name).is_ok() {
info!("Deleted: {}", name);
} else {
warn!("Deleting collection {} failed", name);