Skip to content

Commit a148cd4

Browse files
committed
another std::env::var to Config::get_env
1 parent 577222c commit a148cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn is_executable<P: AsRef<Path>>(path: P) -> bool {
235235
}
236236

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

0 commit comments

Comments
 (0)