Skip to content

Commit

Permalink
Switch to using dirs for home_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed May 19, 2020
1 parent e982271 commit 08e90ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ impl Config {
// /// extensions = ["py3"]
/// ```
pub fn from_config_files() -> Self {
let conf_dir = ::dirs::config_dir()
let conf_dir = dirs::config_dir()
.and_then(Self::get_config)
.unwrap_or_else(Self::default);

let home_dir = env::home_dir()
let home_dir = dirs::home_dir()
.and_then(Self::get_config)
.unwrap_or_else(Self::default);

Expand Down

0 comments on commit 08e90ae

Please sign in to comment.