Make clippy happy

This commit is contained in:
Brendan Hansknecht 2020-10-13 20:26:00 -07:00
parent 26978b58b4
commit eb7e39bf7b
5 changed files with 68 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 {