Skip to content

Commit

Permalink
fix: get_path_env on non-Windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Nov 3, 2023
1 parent e61c64f commit 48d3b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/path_env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ pub fn add_to_path_env(_new_item: &str) -> std::io::Result<()> {
}

#[cfg(not(target_os = "windows"))]
pub fn get_path_env(_new_item: &str) -> Option<OsString> {
pub fn get_path_env() -> Option<std::ffi::OsString> {
std::env::var_os("PATH")
}

0 comments on commit 48d3b1d

Please sign in to comment.