Windows Update (fix #37)

This commit is contained in:
Roey Darwish Dror
2018-08-22 22:18:48 +03:00
parent 0d584bb7c0
commit 79c2c77bbe
3 changed files with 56 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ use failure::Error;
use std::ffi::OsStr;
use std::fmt::Debug;
use std::path::{Path, PathBuf};
use std::process::ExitStatus;
use std::process::{ExitStatus, Output};
use which as which_mod;
#[derive(Fail, Debug)]
@@ -23,6 +23,12 @@ impl Check for ExitStatus {
}
}
impl Check for Output {
fn check(self) -> Result<(), Error> {
self.status.check()
}
}
pub trait PathExt
where
Self: Sized,