just no panic

This commit is contained in:
Tim-Paik 2022-02-05 18:06:35 +08:00
parent f965abf581
commit 376919d1a5
Signed by: Tim-Paik
GPG Key ID: DC36A050DB42566D
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());
}