mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Make clippy happy
This commit is contained in:
parent
26978b58b4
commit
eb7e39bf7b
5 changed files with 68 additions and 74 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue