|
entries: Vec::with_capacity(raw_cap), |
|
self.entries = Vec::with_capacity(usable_capacity(cap)); |
|
self.entries = Vec::with_capacity(usable_capacity(new_raw_cap)); |
HeaderMap::with_capacity reserves the entry vector with Vec::with_capacity(raw_cap), while other functions reserves the same entry with Vec::with_capacity(usable_capacity(raw_cap)).
http/src/header/map.rs
Line 473 in 9c05e39
http/src/header/map.rs
Line 635 in 9c05e39
http/src/header/map.rs
Line 1592 in 9c05e39
HeaderMap::with_capacityreserves the entry vector withVec::with_capacity(raw_cap), while other functions reserves the same entry withVec::with_capacity(usable_capacity(raw_cap)).