Fix Windows warnings

This commit is contained in:
Matt Green 2016-10-26 11:52:00 -04:00
parent f04083a21d
commit d14ccaaa1a
1 changed files with 2 additions and 4 deletions

View File

@ -59,8 +59,6 @@ impl Process {
#[cfg(target_family = "windows")]
impl Process {
pub fn new(cmd: &str, updated_paths: Vec<&str>) -> Option<Process> {
use std::os::windows::io::AsRawHandle;
let mut command = Command::new("cmd.exe");
command.arg("/C").arg(cmd);
@ -78,12 +76,12 @@ impl Process {
return;
}
self.process.kill();
let _ = self.process.kill();
self.killed = true;
}
pub fn wait(&mut self) {
self.process.wait();
let _ = self.process.wait();
}
}