whitequark / rust-xdg

A library that makes it easy to follow the X Desktop Group specifications
https://wiki.freedesktop.org/www/Specifications/
Apache License 2.0
154 stars 30 forks source link

maint: use dirs::home_dir() instead of deprecated std::env::home_dir() #25

Closed davvid closed 5 years ago

davvid commented 5 years ago

cargo check warns that std::env::home_dir() is deprecated:

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.

Use dirs::home_dir() instead.

whitequark commented 5 years ago

Thanks!