Compiling click on master produces 2 warnings related to the use of home_dir from the std::env package.
➜ click git:(master) cargo build
Compiling click v0.3.2 (file:///click)
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/config.rs:329:36
|
329 | } else if let Some(home_dir) = env::home_dir() {
| ^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
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/main.rs:549:15
|
549 | match std::env::home_dir() {
| ^^^^^^^^^^^^^^^^^^
This PR replaces the home_dir function with the one from dirs crate as the warning suggests.
Compiling click on master produces 2 warnings related to the use of
home_dir
from thestd::env
package.This PR replaces the
home_dir
function with the one fromdirs
crate as the warning suggests.