Windows step refactoring
This commit is contained in:
@@ -181,7 +181,7 @@ pub fn require<T: AsRef<OsStr> + Debug>(binary_name: T) -> Result<PathBuf, Error
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[allow(dead_code)]
|
||||
pub fn require_option<T>(option: Option<T>) -> Result<T, Error> {
|
||||
if let Some(value) = option {
|
||||
Ok(value)
|
||||
|
||||
Reference in New Issue
Block a user