diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-20 18:03:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 18:03:37 +0000 |
commit | 5153c20ace96ea12f0a2714dc33d777c16ac2808 (patch) | |
tree | 982840d58a2844c7a3c996851a9a0432bb4236f3 /src | |
parent | 512fc6109182523c50e55ca8729b056442f36823 (diff) | |
download | alacritty-5153c20ace96ea12f0a2714dc33d777c16ac2808.tar.gz alacritty-5153c20ace96ea12f0a2714dc33d777c16ac2808.zip |
Switch from deprecated `std::env::home_dir` to `dirs::home_dir`
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 652569be..f7a1fa1a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,8 @@ extern crate alacritty; #[macro_use] extern crate log; +#[cfg(target_os = "macos")] +extern crate dirs; use std::error::Error; use std::sync::Arc; @@ -48,7 +50,7 @@ fn main() { // Switch to home directory #[cfg(target_os = "macos")] - env::set_current_dir(env::home_dir().unwrap()).unwrap(); + env::set_current_dir(dirs::home_dir().unwrap()).unwrap(); // Set locale #[cfg(target_os = "macos")] locale::set_locale_environment(); |