diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-01-04 13:43:11 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-01-04 13:43:18 +0100 |
| commit | ef3151200e941f21e64c96fa2d7d689552a019af (patch) | |
| tree | 24ff1e4839edf8b76c3396663ff2623019c7e7f0 /mullvad-problem-report/src | |
| parent | ed63441bfc8b660aa57a6941a0f08cf2097a8291 (diff) | |
| download | mullvadvpn-ef3151200e941f21e64c96fa2d7d689552a019af.tar.xz mullvadvpn-ef3151200e941f21e64c96fa2d7d689552a019af.zip | |
Migrate from deprecated dirs dependency
Diffstat (limited to 'mullvad-problem-report/src')
| -rw-r--r-- | mullvad-problem-report/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-problem-report/src/lib.rs b/mullvad-problem-report/src/lib.rs index af2680efb7..276a1557b1 100644 --- a/mullvad-problem-report/src/lib.rs +++ b/mullvad-problem-report/src/lib.rs @@ -205,7 +205,7 @@ fn frontend_log_dir() -> Option<Result<PathBuf, LogError>> { #[cfg(target_os = "linux")] { Some( - dirs::home_dir() + dirs_next::home_dir() .ok_or(LogError::NoHomeDir) .map(|home_dir| home_dir.join(".config/Mullvad VPN/logs")), ) @@ -213,7 +213,7 @@ fn frontend_log_dir() -> Option<Result<PathBuf, LogError>> { #[cfg(target_os = "macos")] { Some( - dirs::home_dir() + dirs_next::home_dir() .ok_or(LogError::NoHomeDir) .map(|home_dir| home_dir.join("Library/Logs/Mullvad VPN")), ) @@ -369,7 +369,7 @@ impl ProblemReport { } fn redact_home_dir(input: &str) -> Cow<'_, str> { - match dirs::home_dir() { + match dirs_next::home_dir() { Some(home) => Cow::from(input.replace(home.to_string_lossy().as_ref(), "~")), None => Cow::from(input), } |
