Skip to content

Commit 642be47

Browse files
committed
gix-url: use gix_path::env::home_dir instead of home::home_dir
1 parent 030d880 commit 642be47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-url/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ pub fn parse(input: &BStr) -> Result<Url, parse::Error> {
4848
/// If more precise control of the resolution mechanism is needed, then use the [expand_path::with()] function.
4949
pub fn expand_path(user: Option<&expand_path::ForUser>, path: &BStr) -> Result<PathBuf, expand_path::Error> {
5050
expand_path::with(user, path, |user| match user {
51-
expand_path::ForUser::Current => home::home_dir(),
51+
expand_path::ForUser::Current => gix_path::env::home_dir(),
5252
expand_path::ForUser::Name(user) => {
53-
home::home_dir().and_then(|home| home.parent().map(|home_dirs| home_dirs.join(user.to_string())))
53+
gix_path::env::home_dir().and_then(|home| home.parent().map(|home_dirs| home_dirs.join(user.to_string())))
5454
}
5555
})
5656
}

0 commit comments

Comments
 (0)