diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-06-06 15:58:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 18:58:53 -0400 |
commit | 63f9ed6199282ed8290c68852a6ee0db5e8c8441 (patch) | |
tree | 0ac181b6c0afdabb72c5b55d765df913cf61e749 /src | |
parent | 2e5c08152a9c5ccad1aae5242126c93c3494ec07 (diff) |
deps: Switch back from dirs-next to dirs (#492)
Since it's supported again, seems like a good time to switch back to
dirs.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -186,14 +186,14 @@ pub fn read_config(config_location: Option<&str>) -> error::Result<Option<PathBu let config_path = if let Some(conf_loc) = config_location { Some(PathBuf::from(conf_loc)) } else if cfg!(target_os = "windows") { - if let Some(home_path) = dirs_next::config_dir() { + if let Some(home_path) = dirs::config_dir() { let mut path = home_path; path.push(DEFAULT_CONFIG_FILE_PATH); Some(path) } else { None } - } else if let Some(home_path) = dirs_next::home_dir() { + } else if let Some(home_path) = dirs::home_dir() { let mut path = home_path; path.push(".config/"); path.push(DEFAULT_CONFIG_FILE_PATH); @@ -202,7 +202,7 @@ pub fn read_config(config_location: Option<&str>) -> error::Result<Option<PathBu Some(path) } else { // If it does not, use the new one! - if let Some(config_path) = dirs_next::config_dir() { + if let Some(config_path) = dirs::config_dir() { let mut path = config_path; path.push(DEFAULT_CONFIG_FILE_PATH); Some(path) |