diff --git a/src/utils.rs b/src/utils.rs index 0264abf..10c218d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -24,7 +24,7 @@ pub fn into_absolute(path: impl AsRef) -> Result { 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();