[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,9 +70,7 @@ 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()
|
|
||||||
.map(|name| {
|
|
||||||
match name {
|
match name {
|
||||||
"set" => set(&rt),
|
"set" => set(&rt),
|
||||||
"get" => get(&rt),
|
"get" => get(&rt),
|
||||||
|
@ -88,7 +86,7 @@ fn main() {
|
||||||
.map(::std::process::exit);
|
.map(::std::process::exit);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set(rt: &Runtime) {
|
fn set(rt: &Runtime) {
|
||||||
|
|
Loading…
Reference in a new issue