Fix headless-minimal properly

This commit is contained in:
Felix Schütt
2023-01-17 21:02:44 +01:00
parent 1ca0de826d
commit 0678e90cbd
8 changed files with 47 additions and 46 deletions

View File

@@ -51,3 +51,7 @@ pub fn get_cache_dir() -> PathBuf {
}
}
}
pub(crate) fn normalize_path(s: &str) -> String {
s.strip_prefix(r"\\?\").unwrap_or(s).to_string()
}