Skip to content

Commit

Permalink
another std::env::var to Config::get_env
Browse files Browse the repository at this point in the history
  • Loading branch information
kylematsuda committed Feb 17, 2023
1 parent 577222c commit a148cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ fn is_executable<P: AsRef<Path>>(path: P) -> bool {
}

fn search_directories(config: &Config) -> Vec<PathBuf> {
let mut path_dirs = if let Some(val) = env::var_os("PATH") {
let mut path_dirs = if let Some(val) = config.get_env_os("PATH") {
env::split_paths(&val).collect()
} else {
vec![]
Expand Down

0 comments on commit a148cd4

Please sign in to comment.