From dad1333b48c38bc7a5628fc0ff5304d003776a85 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 11 Jun 2020 11:04:09 +0200 Subject: New VFS --- crates/paths/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/paths/src') diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs index 32267f2e6..45b19c45a 100644 --- a/crates/paths/src/lib.rs +++ b/crates/paths/src/lib.rs @@ -2,7 +2,7 @@ //! relative paths. use std::{ convert::{TryFrom, TryInto}, - io, ops, + ops, path::{Component, Path, PathBuf}, }; @@ -46,9 +46,6 @@ impl TryFrom<&str> for AbsPathBuf { } impl AbsPathBuf { - pub fn canonicalized(path: &Path) -> io::Result { - path.canonicalize().map(|it| AbsPathBuf::try_from(it).unwrap()) - } pub fn as_path(&self) -> &AbsPath { AbsPath::new_unchecked(self.0.as_path()) } -- cgit v1.2.3