Clippy's suggestion failed me, as `slice::take` only yields _at most_ the given number of elements, but `Vec::with_capacity` doesn't resize in a way that it would yield `capacity` elements. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |
Clippy's suggestion failed me, as `slice::take` only yields _at most_ the given number of elements, but `Vec::with_capacity` doesn't resize in a way that it would yield `capacity` elements. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |