We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84172ed commit 6999fddCopy full SHA for 6999fdd
src/utils.rs
@@ -84,7 +84,7 @@ pub fn component_vec_to_path_buf(components: ComponentVec) -> PathBuf {
84
85
pub fn to_normalized_components<'a>(path: &'a Path) -> ComponentVec<'a> {
86
let mut components = path.components().peekable();
87
- let mut ret = SmallVec::with_capacity(components.size_hint().1.unwrap_or(0));
+ let mut ret = SmallVec::with_capacity(components.size_hint().1.unwrap_or(8));
88
if let Some(c @ Component::Prefix(..)) = components.peek() {
89
ret.push(*c);
90
components.next();
0 commit comments