diff --git a/axoupdater/src/receipt.rs b/axoupdater/src/receipt.rs index 7309963..d22b2fe 100644 --- a/axoupdater/src/receipt.rs +++ b/axoupdater/src/receipt.rs @@ -104,7 +104,7 @@ pub(crate) fn get_config_path(app_name: &str) -> AxoupdateResult { let home = if cfg!(windows) { env::var("LOCALAPPDATA").map(PathBuf::from).ok() } else { - homedir::get_my_home()?.map(|path| path.join(".config")) + homedir::my_home()?.map(|path| path.join(".config")) }; let Some(home) = home else { return Err(AxoupdateError::NoHome {}); diff --git a/axoupdater/src/test/helpers.rs b/axoupdater/src/test/helpers.rs index 75c3f5f..edf64f7 100644 --- a/axoupdater/src/test/helpers.rs +++ b/axoupdater/src/test/helpers.rs @@ -99,7 +99,7 @@ pub fn perform_runtest(runtest_args: &RuntestArgs) -> PathBuf { } = runtest_args; let basename = bin.file_name().unwrap(); - let home = homedir::get_my_home().unwrap().unwrap(); + let home = homedir::my_home().unwrap().unwrap(); let app_home = &home.join(".cargo").join("bin"); let app_path = &app_home.join(basename);