just no panic

This commit is contained in:
2022-02-05 18:06:35 +08:00
parent f965abf581
commit 376919d1a5
+1 -1
View File
@@ -236,7 +236,7 @@ pub fn normalize_path(path: &Path) -> PathBuf {
for component in components { for component in components {
match component { match component {
Component::Prefix(..) => unreachable!(), Component::Prefix(..) => {}
Component::RootDir => { Component::RootDir => {
ret.push(component.as_os_str()); ret.push(component.as_os_str());
} }