Fix compile on Windows

This commit is contained in:
Alex Crichton 2018-07-27 09:01:13 -07:00
parent 74cb40189c
commit 851debbec1

View File

@ -92,6 +92,7 @@ fn exec(cmd: &mut Command) -> Result<(), Error> {
#[cfg(windows)]
fn exec(cmd: &mut Command) -> Result<(), Error> {
use std::process;
let status = cmd.status()?;
process::exit(status.code().unwrap_or(3));
}