mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
remove label from Struct layout
This commit is contained in:
parent
e2a7c970bc
commit
46062439b5
7 changed files with 233 additions and 211 deletions
|
@ -942,10 +942,7 @@ fn path_to_expr_help<'a>(
|
|||
|
||||
let (is_unwrapped, field_layouts) = match outer_layout {
|
||||
Layout::Union(layouts) => (layouts.is_empty(), layouts[*tag_id as usize].to_vec()),
|
||||
Layout::Struct(layouts) => (
|
||||
true,
|
||||
layouts.iter().map(|v| v.1.clone()).collect::<Vec<_>>(),
|
||||
),
|
||||
Layout::Struct(layouts) => (true, layouts.to_vec()),
|
||||
other => (true, vec![other]),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue