[No-auto] bin/core/git: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
d9d82d7441
commit
20de35d91b
1 changed files with 8 additions and 12 deletions
|
@ -116,20 +116,16 @@ fn main() {
|
||||||
debug!("Adding args = {:?}", args);
|
debug!("Adding args = {:?}", args);
|
||||||
command.args(&args);
|
command.args(&args);
|
||||||
|
|
||||||
match rt.cli().subcommand() {
|
if let (external, Some(ext_m)) = rt.cli().subcommand() {
|
||||||
(external, Some(ext_m)) => {
|
command.arg(external);
|
||||||
command.arg(external);
|
let args = ext_m
|
||||||
let args = ext_m
|
.values_of("")
|
||||||
.values_of("")
|
.map(|vs| vs.map(String::from).collect())
|
||||||
.map(|vs| vs.map(String::from).collect())
|
.unwrap_or_else(|| vec![]);
|
||||||
.unwrap_or_else(|| vec![]);
|
|
||||||
|
|
||||||
debug!("Adding subcommand '{}' and args = {:?}", external, args);
|
debug!("Adding subcommand '{}' and args = {:?}", external, args);
|
||||||
command.args(&args);
|
command.args(&args);
|
||||||
},
|
|
||||||
_ => {},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut out = rt.stdout();
|
let mut out = rt.stdout();
|
||||||
|
|
||||||
debug!("Calling: {:?}", command);
|
debug!("Calling: {:?}", command);
|
||||||
|
|
Loading…
Reference in a new issue