Skip to content

Commit c06226c

Browse files
committed
fix(windows): import windows only constants inside windows only function
1 parent 2400938 commit c06226c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config/config.rs

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ fn get_config_path_from_default_location_by_env(env: &str) -> Option<PathBuf> {
7777

7878
#[cfg(target_os = "windows")]
7979
fn get_home_env() -> Option<String> {
80+
use crate::config::constants::WINDOWS_HOMEDRIVE_ENV;
81+
use crate::config::constants::WINDOWS_HOMEPATH_ENV;
82+
use crate::config::constants::WINDOWS_USERPROFILE_ENV;
83+
8084
if let Ok(home) = env::var(HOME_ENV) {
8185
return Some(home);
8286
}

0 commit comments

Comments
 (0)