[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:
parent
42f6a3040d
commit
7a97c02584
1 changed files with 17 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue