mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
remove extra check
This commit is contained in:
parent
9207145792
commit
3ea748e532
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ fn layout_from_flat_type<'a>(
|
|||
}
|
||||
// We can only unwrap a wrapper if it never becomes part of a bigger union
|
||||
// therefore, the ext_var must be the literal empty tag union
|
||||
1 if ext_var == Variable::EMPTY_TAG_UNION => {
|
||||
1 => {
|
||||
// This is a wrapper. Unwrap it!
|
||||
let (tag, args) = tags.into_iter().next().unwrap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue