Hacker News new | ask | show | jobs
by skitter 657 days ago
The vec already gets allocated with capacity == length

https://doc.rust-lang.org/nightly/src/alloc/slice.rs.html#16...