mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge remote-tracking branch 'origin/trunk' into sized-functions-inference
This commit is contained in:
commit
ca2efc27bd
6 changed files with 71 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