Skip to content

Commit c53bdc4

Browse files
committed
refactor(util): Clarify intent of normalize_path
1 parent 1f8b294 commit c53bdc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cargo-util/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn normalize_path(path: &Path) -> PathBuf {
9494
match component {
9595
Component::Prefix(..) => unreachable!(),
9696
Component::RootDir => {
97-
ret.push(component.as_os_str());
97+
ret.push(Component::RootDir);
9898
}
9999
Component::CurDir => {}
100100
Component::ParentDir => {

0 commit comments

Comments
 (0)