1
0
mirror of https://github.com/Tim-Paik/neutauri.git synced 2024-10-12 23:29:41 +00:00

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

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());
} }