This commit is contained in:
sxyazi 2024-10-26 08:47:39 +08:00
parent ec8c0aae74
commit 7169b4d6fe
No known key found for this signature in database

View file

@ -170,6 +170,7 @@ pub fn path_relative_to<'a>(path: &'a Path, root: &Path) -> Cow<'a, Path> {
Cow::from(buf)
}
#[cfg(windows)]
pub fn backslash_to_slash(p: &Path) -> Cow<Path> {
let bytes = p.as_os_str().as_encoded_bytes();