Skip to content

Commit 464e0a2

Browse files
committed
Thanks clippy
1 parent 8ae54e8 commit 464e0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-path/src/env/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use once_cell::sync::Lazy;
99
pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> =
1010
Lazy::new(|| locations_under_program_files(|key| std::env::var_os(key)));
1111
#[cfg(not(windows))]
12-
pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> = Lazy::new(|| vec![]);
12+
pub(super) static ALTERNATIVE_LOCATIONS: Lazy<Vec<PathBuf>> = Lazy::new(Vec::new);
1313

1414
#[cfg(windows)]
1515
fn locations_under_program_files<F>(var_os_func: F) -> Vec<PathBuf>

0 commit comments

Comments
 (0)