Skip to content

Commit 4a94d54

Browse files
committed
Switch from dirs-next to home
1 parent 5c2fc46 commit 4a94d54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ webpki-roots = ["hyper-rustls/webpki-roots"]
1919
async-trait = "0.1"
2020
base64 = "0.21"
2121
chrono = { version = "0.4.31", features = ["serde"] }
22-
dirs-next = "2.0"
22+
home = "0.5.5"
2323
hyper = { version = "0.14.2", features = ["client", "runtime", "http2"] }
2424
hyper-rustls = { version = "0.24", default-features = false, features = ["tokio-runtime", "http1", "http2"] }
2525
ring = "0.17"

src/default_authorized_user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl ConfigDefaultCredentials {
2424

2525
pub(crate) async fn new(client: &HyperClient) -> Result<Self, Error> {
2626
tracing::debug!("Loading user credentials file");
27-
let mut home = dirs_next::home_dir().ok_or(Error::NoHomeDir)?;
27+
let mut home = home::home_dir().ok_or(Error::NoHomeDir)?;
2828
home.push(Self::USER_CREDENTIALS_PATH);
2929

3030
let file = fs::File::open(home).map_err(Error::UserProfilePath)?;

0 commit comments

Comments
 (0)