mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Use from_iter_in
This commit is contained in:
parent
ca8a5983a5
commit
b44f76f500
1 changed files with 1 additions and 1 deletions
|
@ -10775,8 +10775,8 @@ pub fn generate_glue_procs<'a, I: Interner<'a, Layout<'a>>>(
|
||||||
layout_interner: &mut I,
|
layout_interner: &mut I,
|
||||||
layout: Layout<'a>,
|
layout: Layout<'a>,
|
||||||
) -> Vec<'a, (Layout<'a>, Vec<'a, GlueProc<'a>>)> {
|
) -> Vec<'a, (Layout<'a>, Vec<'a, GlueProc<'a>>)> {
|
||||||
let mut stack = Vec::new_in(arena);
|
|
||||||
let mut answer = Vec::new_in(arena);
|
let mut answer = Vec::new_in(arena);
|
||||||
|
let mut stack = Vec::from_iter_in([layout], arena);
|
||||||
|
|
||||||
stack.push(layout);
|
stack.push(layout);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue