Skip to content

Commit

Permalink
Fix clippy error around into()
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Oct 25, 2024
1 parent 0d71125 commit 1b1a1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ async fn get_netrc_path(xdg: &BaseDirectories) -> Result<PathBuf, FhError> {
let xdg_path = xdg.place_config_file(XDG_NIX_NETRC_SUFFIX)?;

match try_exists(&xdg_path).await {
Ok(exists) if exists => Ok(xdg_path.into()),
Ok(exists) if exists => Ok(xdg_path),
_ => Err(FhError::NetrcNotFound(xdg_path.display().to_string())),
}
}
Expand Down

0 comments on commit 1b1a1a3

Please sign in to comment.