[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
e010ef554d
commit
451020187e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue