fix build error on windows (#741)

This commit is contained in:
o69mar 2023-03-09 07:32:41 +03:00 committed by GitHub
parent 01f9907aaf
commit dfa57c890d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,13 @@
use std::{ use std::{
os::unix::process::ExitStatusExt,
process::{Command, ExitStatus, Output}, process::{Command, ExitStatus, Output},
}; };
#[cfg(not(target_os = "windows"))]
use std::os::unix::process::ExitStatusExt;
#[cfg(target_os = "windows")]
use std::os::windows::process::ExitStatusExt;
fn main() { fn main() {
let output = String::from_utf8( let output = String::from_utf8(
Command::new("git") Command::new("git")