[No-auto] bin/core/gps: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
20de35d91b
commit
0befd68c95
1 changed files with 13 additions and 14 deletions
|
@ -69,21 +69,20 @@ fn main() {
|
|||
"Add GPS coordinates to entries",
|
||||
ui::build_ui);
|
||||
|
||||
rt.cli().subcommand_name()
|
||||
.map(|name| {
|
||||
match name {
|
||||
"add" => add(&rt),
|
||||
"remove" => remove(&rt),
|
||||
"get" => get(&rt),
|
||||
other => {
|
||||
debug!("Unknown command");
|
||||
let _ = rt.handle_unknown_subcommand("imag-gps", other, rt.cli())
|
||||
.map_err_trace_exit_unwrap()
|
||||
.code()
|
||||
.map(::std::process::exit);
|
||||
}
|
||||
if let Some(name) = rt.cli().subcommand_name() {
|
||||
match name {
|
||||
"add" => add(&rt),
|
||||
"remove" => remove(&rt),
|
||||
"get" => get(&rt),
|
||||
other => {
|
||||
debug!("Unknown command");
|
||||
let _ = rt.handle_unknown_subcommand("imag-gps", other, rt.cli())
|
||||
.map_err_trace_exit_unwrap()
|
||||
.code()
|
||||
.map(::std::process::exit);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn rt_get_ids(rt: &Runtime) -> Vec<StoreId> {
|
||||
|
|
Loading…
Reference in a new issue