1
0
mirror of https://github.com/spikecodes/libreddit synced 2024-12-26 02:25:41 +01:00

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::{
os::unix::process::ExitStatusExt,
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() {
let output = String::from_utf8(
Command::new("git")