[No-auto] bin/core/ref: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
4579187549
commit
5b0817bcb6
1 changed files with 16 additions and 18 deletions
|
@ -69,24 +69,22 @@ fn main() {
|
||||||
&version,
|
&version,
|
||||||
"Reference files outside of the store",
|
"Reference files outside of the store",
|
||||||
build_ui);
|
build_ui);
|
||||||
rt.cli()
|
if let Some(name) = rt.cli().subcommand_name() {
|
||||||
.subcommand_name()
|
debug!("Call: {}", name);
|
||||||
.map(|name| {
|
match name {
|
||||||
debug!("Call: {}", name);
|
"deref" => deref(&rt),
|
||||||
match name {
|
"create" => create(&rt),
|
||||||
"deref" => deref(&rt),
|
"remove" => remove(&rt),
|
||||||
"create" => create(&rt),
|
"list-dead" => list_dead(&rt),
|
||||||
"remove" => remove(&rt),
|
other => {
|
||||||
"list-dead" => list_dead(&rt),
|
debug!("Unknown command");
|
||||||
other => {
|
let _ = rt.handle_unknown_subcommand("imag-ref", other, rt.cli())
|
||||||
debug!("Unknown command");
|
.map_err_trace_exit_unwrap()
|
||||||
let _ = rt.handle_unknown_subcommand("imag-ref", other, rt.cli())
|
.code()
|
||||||
.map_err_trace_exit_unwrap()
|
.map(::std::process::exit);
|
||||||
.code()
|
},
|
||||||
.map(::std::process::exit);
|
};
|
||||||
},
|
}
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn deref(rt: &Runtime) {
|
fn deref(rt: &Runtime) {
|
||||||
|
|
Loading…
Reference in a new issue