Skip to content

Commit

Permalink
refactor(util): Clarify intent of normalize_path
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 30, 2024
1 parent 1f8b294 commit c53bdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cargo-util/src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn normalize_path(path: &Path) -> PathBuf {
match component {
Component::Prefix(..) => unreachable!(),
Component::RootDir => {
ret.push(component.as_os_str());
ret.push(Component::RootDir);
}
Component::CurDir => {}
Component::ParentDir => {
Expand Down

0 comments on commit c53bdc4

Please sign in to comment.