Merge remote-tracking branch 'origin/trunk' into sized-functions-inference

This commit is contained in:
Folkert 2020-10-15 14:34:32 +02:00
commit ca2efc27bd
6 changed files with 71 additions and 74 deletions

View file

@ -89,13 +89,7 @@ impl Default for Pools {
impl Pools {
pub fn new(num_pools: usize) -> Self {
let mut pools = Vec::with_capacity(num_pools);
for _ in 0..num_pools {
pools.push(Vec::new());
}
Pools(pools)
Pools(vec![Vec::new(); num_pools])
}
pub fn len(&self) -> usize {