[No-auto] bin/core/category: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
846304e687
commit
cba336e1dd
1 changed files with 17 additions and 19 deletions
|
@ -70,25 +70,23 @@ fn main() {
|
||||||
"Add a category to entries and manage categories",
|
"Add a category to entries and manage categories",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
rt.cli()
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
.subcommand_name()
|
match name {
|
||||||
.map(|name| {
|
"set" => set(&rt),
|
||||||
match name {
|
"get" => get(&rt),
|
||||||
"set" => set(&rt),
|
"list-category" => list_category(&rt),
|
||||||
"get" => get(&rt),
|
"create-category" => create_category(&rt),
|
||||||
"list-category" => list_category(&rt),
|
"delete-category" => delete_category(&rt),
|
||||||
"create-category" => create_category(&rt),
|
"list-categories" => list_categories(&rt),
|
||||||
"delete-category" => delete_category(&rt),
|
other => {
|
||||||
"list-categories" => list_categories(&rt),
|
debug!("Unknown command");
|
||||||
other => {
|
let _ = rt.handle_unknown_subcommand("imag-category", other, rt.cli())
|
||||||
debug!("Unknown command");
|
.map_err_trace_exit_unwrap()
|
||||||
let _ = rt.handle_unknown_subcommand("imag-category", other, rt.cli())
|
.code()
|
||||||
.map_err_trace_exit_unwrap()
|
.map(::std::process::exit);
|
||||||
.code()
|
},
|
||||||
.map(::std::process::exit);
|
}
|
||||||
},
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set(rt: &Runtime) {
|
fn set(rt: &Runtime) {
|
||||||
|
|
Loading…
Reference in a new issue