~matthiasbeyer/imag

451020187eb72c24371829192f7a508ea017cdf4 — flip1995 1 year, 7 months ago e010ef5
[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, 3 insertions(+), 3 deletions(-)

M bin/core/imag-git/src/main.rs
M bin/core/imag-git/src/main.rs => bin/core/imag-git/src/main.rs +3 -3
@@ 151,19 151,19 @@ fn main() {
            debug!("Error calling git");
            match e.kind() {
                ErrorKind::NotFound => {
                    let _ = writeln!(out, "Cannot find 'git' executable")
                    writeln!(out, "Cannot find 'git' executable")
                        .to_exit_code()
                        .unwrap_or_exit();
                    ::std::process::exit(1);
                },
                ErrorKind::PermissionDenied => {
                    let _ = writeln!(out, "No permission to execute: 'git'")
                    writeln!(out, "No permission to execute: 'git'")
                        .to_exit_code()
                        .unwrap_or_exit();
                    ::std::process::exit(1);
                },
                _ => {
                    let _ = writeln!(out, "Error spawning: {:?}", e)
                    writeln!(out, "Error spawning: {:?}", e)
                        .to_exit_code()
                        .unwrap_or_exit();
                    ::std::process::exit(1);