diff --git a/Cargo.lock b/Cargo.lock index 05d8c0f..3860454 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -640,7 +640,7 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fh" -version = "0.1.18" +version = "0.1.19" dependencies = [ "async-trait", "axum", diff --git a/src/cli/cmd/mod.rs b/src/cli/cmd/mod.rs index f543235..6aae75e 100644 --- a/src/cli/cmd/mod.rs +++ b/src/cli/cmd/mod.rs @@ -486,12 +486,12 @@ fn validate_segment(s: &str) -> Result<(), FhError> { // to find it via XDG path. async fn get_netrc_path(xdg: &BaseDirectories) -> Result { match try_exists(DETERMINATE_NIX_NETRC_PATH).await { - Ok(exists) if exists => Ok(PathBuf::from(DETERMINATE_NIX_NETRC_PATH)), + Ok(exists) if exists => Ok(DETERMINATE_NIX_NETRC_PATH.into()), _ => { let xdg_path = xdg.place_config_file(XDG_NIX_NETRC_SUFFIX)?; match try_exists(&xdg_path).await { - Ok(exists) if exists => Ok(xdg_path.to_path_buf()), + Ok(exists) if exists => Ok(xdg_path.into()), _ => Err(FhError::NetrcNotFound(xdg_path.display().to_string())), } }