mirror of
https://github.com/spikecodes/libreddit
synced 2024-12-25 18:15:16 +01:00
fix build error on windows (#741)
This commit is contained in:
parent
01f9907aaf
commit
dfa57c890d
8
build.rs
8
build.rs
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user