Replace `std::env::home_dir()` with `home` crate impl. (#9293)
* Import the `home` crate in `util/dir`. * Replace uses of `env::home_dir()` with `home::home_dir()`. * `home` uses a 'correct' impl. on windows and the stdlib impl. of `::home_dir` otherwise. * Reexport `home::home_dir` from `util/dir`. * Bump `util/dir` to 0.1.2.
Showing
- Cargo.lock 26 additions, 15 deletionsCargo.lock
- README.md 0 additions, 166 deletionsREADME.md
- parity/upgrade.rs 2 additions, 3 deletionsparity/upgrade.rs
- util/dir/Cargo.toml 2 additions, 1 deletionutil/dir/Cargo.toml
- util/dir/src/helpers.rs 2 additions, 2 deletionsutil/dir/src/helpers.rs
- util/dir/src/lib.rs 5 additions, 2 deletionsutil/dir/src/lib.rs
Please register or sign in to comment