Skip to content

Commit

Permalink
find_in_paths only on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrs committed Jul 23, 2024
1 parent 59d9122 commit 147df6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ impl<'a> Cmd<'a> {
return self.data.prog.as_os_str().into();
}

#[cfg(windows)]
fn find_in_paths(&self, paths: Option<&OsString>) -> Option<OsString> {
paths.and_then(|paths| {
for folder in env::split_paths(&paths).filter(|p| !p.as_os_str().is_empty()) {
Expand Down

0 comments on commit 147df6b

Please sign in to comment.