matthias-t / workspace

Mirror of https://git.sr.ht/~matthias_t/workspace
MIT License
0 stars 1 forks source link

std::env::home_dir is deprecated #48

Closed matthias-t closed 6 years ago

matthias-t commented 6 years ago

Compiler warning:

warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead.
   --> src\workspace.rs:136:20
    |
136 |     let mut path = env::home_dir().unwrap_or_exit("Could not find home directory");
    |                    ^^^^^^^^^^^^^
    |
    = note: #[warn(deprecated)] on by default