Replace dirs with dirs-next dependency (#1361)

`dirs` will be unmaintained for the foreseeable future, so
switch to the maintained fork `dirs-next`.

Closes #1319.
This commit is contained in:
Julian Gehring
2020-06-20 18:59:35 +01:00
committed by GitHub
parent ee3c0ec9d5
commit d21cb62e3a
11 changed files with 36 additions and 41 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ use std::clone::Clone;
use std::collections::HashMap;
use std::marker::Sized;
use dirs::home_dir;
use std::env;
use toml::Value;
@@ -205,7 +204,7 @@ impl StarshipConfig {
} else {
// Default to using ~/.config/starship.toml
log::debug!("STARSHIP_CONFIG is not set");
let config_path = home_dir()?.join(".config/starship.toml");
let config_path = dirs_next::home_dir()?.join(".config/starship.toml");
let config_path_str = config_path.to_str()?.to_owned();
log::debug!("Using default config path: {}", config_path_str);
config_path_str