Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use std::ffi::OsStr;
use std::path::{Component, MAIN_SEPARATOR_STR, Path, PathBuf};

/// Normalizes a given path by removing redundant components.
/// The given path must be absolute (e.g. by joining it with the current working directory).
pub fn normalize(path: &Path) -> PathBuf {
debug_assert!(path.is_absolute());

let mut res = PathBuf::with_capacity(path.as_os_str().len());
let mut root_len = 0;

Expand Down
Loading