~matthiasbeyer/imag

20de35d91b6bb66b4397c3d0c53fe31768b94c2e — flip1995 1 year, 7 months ago d9d82d7
[No-auto] bin/core/git: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 9 insertions(+), 13 deletions(-)

M bin/core/imag-git/src/main.rs
M bin/core/imag-git/src/main.rs => bin/core/imag-git/src/main.rs +9 -13
@@ 116,20 116,16 @@ fn main() {
    debug!("Adding args = {:?}", args);
    command.args(&args);

    match rt.cli().subcommand() {
        (external, Some(ext_m)) => {
            command.arg(external);
            let args = ext_m
                .values_of("")
                .map(|vs| vs.map(String::from).collect())
                .unwrap_or_else(|| vec![]);

            debug!("Adding subcommand '{}' and args = {:?}", external, args);
            command.args(&args);
        },
        _ => {},
    if let (external, Some(ext_m)) = rt.cli().subcommand() {
        command.arg(external);
        let args = ext_m
            .values_of("")
            .map(|vs| vs.map(String::from).collect())
            .unwrap_or_else(|| vec![]);

        debug!("Adding subcommand '{}' and args = {:?}", external, args);
        command.args(&args);
    }

    let mut out = rt.stdout();

    debug!("Calling: {:?}", command);