Fix abs_path bug
This commit is contained in:
parent
9bc591d09d
commit
f76f21ffc2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue