[No-auto] bin/core/annotate: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
3a1f0dde9d
commit
846304e687
1 changed files with 14 additions and 16 deletions
|
@ -77,9 +77,7 @@ fn main() {
|
||||||
"Add annotations to entries",
|
"Add annotations to entries",
|
||||||
ui::build_ui);
|
ui::build_ui);
|
||||||
|
|
||||||
rt.cli()
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
.subcommand_name()
|
|
||||||
.map(|name| {
|
|
||||||
match name {
|
match name {
|
||||||
"add" => add(&rt),
|
"add" => add(&rt),
|
||||||
"remove" => remove(&rt),
|
"remove" => remove(&rt),
|
||||||
|
@ -92,7 +90,7 @@ fn main() {
|
||||||
.map(::std::process::exit);
|
.map(::std::process::exit);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add(rt: &Runtime) {
|
fn add(rt: &Runtime) {
|
||||||
|
|
Loading…
Reference in a new issue