just no panic

This commit is contained in:
Tim-Paik 2022-02-05 18:06:35 +08:00
parent ed51c5e264
commit 5fc1a26dc2
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ pub fn normalize_path(path: &Path) -> PathBuf {
for component in components {
match component {
Component::Prefix(..) => unreachable!(),
Component::Prefix(..) => {}
Component::RootDir => {
ret.push(component.as_os_str());
}