Skip to content

Commit 9e0df8d

Browse files
committed
Allow path::normalize to normalize relative paths
1 parent 6c1d184 commit 9e0df8d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/path.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ use std::ffi::OsStr;
77
use std::path::{Component, MAIN_SEPARATOR_STR, Path, PathBuf};
88

99
/// Normalizes a given path by removing redundant components.
10-
/// The given path must be absolute (e.g. by joining it with the current working directory).
1110
pub fn normalize(path: &Path) -> PathBuf {
12-
debug_assert!(path.is_absolute());
13-
1411
let mut res = PathBuf::with_capacity(path.as_os_str().len());
1512
let mut root_len = 0;
1613

0 commit comments

Comments
 (0)