Fix abs_path bug

This commit is contained in:
Michael Zhang 2021-12-30 22:10:24 -06:00
parent 9bc591d09d
commit f76f21ffc2
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -24,7 +24,7 @@ pub fn into_absolute(path: impl AsRef<Path>) -> Result<PathBuf> {
for component in path.components() {
match component {
Component::Prefix(_) => unimplemented!("windows lol"),
Component::RootDir => {}
Component::RootDir => return Ok(path.to_path_buf()),
Component::CurDir => {}
Component::ParentDir => {
new_path.pop();