chore: prefer AsRef<Path> to &Path (#8249)

This is some minor API cleanup that will make it easier to use
`AbsolutePathBuf` in more places in a subsequent PR.
This commit is contained in:
Michael Bolin
2025-12-18 08:50:13 -08:00
committed by GitHub
Unverified
parent 374d591311
commit deafead169
3 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ use std::path::PathBuf;
use crate::env;
pub fn normalize_for_path_comparison(path: &Path) -> std::io::Result<PathBuf> {
let canonical = path.canonicalize()?;
pub fn normalize_for_path_comparison(path: impl AsRef<Path>) -> std::io::Result<PathBuf> {
let canonical = path.as_ref().canonicalize()?;
Ok(normalize_for_wsl(canonical))
}