Skip to content

Commit

Permalink
Move to the smaller, cargo-team maintained home crate (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshgupta137 authored Oct 15, 2023
1 parent b11eb32 commit 26a81b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws-creds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/lib.rs"

[dependencies]
thiserror = "1"
dirs = "5"
home = "0.5"
rust-ini = "0.18"
attohttpc = { version = "0.24", default-features = false, features = [
"json",
Expand Down
2 changes: 1 addition & 1 deletion aws-creds/src/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl Credentials {
}

pub fn from_profile(section: Option<&str>) -> Result<Credentials, CredentialsError> {
let home_dir = dirs::home_dir().ok_or(CredentialsError::HomeDir)?;
let home_dir = home::home_dir().ok_or(CredentialsError::HomeDir)?;
let profile = format!("{}/.aws/credentials", home_dir.display());
let conf = Ini::load_from_file(profile)?;
let section = section.unwrap_or("default");
Expand Down

0 comments on commit 26a81b3

Please sign in to comment.