From f76f21ffc2c4b91ad4c567ffb156667b41924ef6 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 30 Dec 2021 22:10:24 -0600 Subject: [PATCH] Fix abs_path bug --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();