We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae54e8 commit 464e0a2Copy full SHA for 464e0a2
gix-path/src/env/git.rs
@@ -9,7 +9,7 @@ use once_cell::sync::Lazy;
9
pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> =
10
Lazy::new(|| locations_under_program_files(|key| std::env::var_os(key)));
11
#[cfg(not(windows))]
12
-pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> = Lazy::new(|| vec![]);
+pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> = Lazy::new(Vec::new);
13
14
#[cfg(windows)]
15
fn locations_under_program_files<F>(var_os_func: F) -> Vec<PathBuf>
0 commit comments