fix wrong bool

This commit is contained in:
Folkert 2021-07-05 17:35:23 +02:00
parent 39496e2111
commit 71d46a9b51

View file

@ -191,7 +191,7 @@ impl<'a> UnionLayout<'a> {
match self { match self {
UnionLayout::NonRecursive(_) UnionLayout::NonRecursive(_)
| UnionLayout::Recursive(_) | UnionLayout::Recursive(_)
| UnionLayout::NonNullableUnwrapped { .. } => true, | UnionLayout::NonNullableUnwrapped { .. } => false,
UnionLayout::NullableWrapped { .. } | UnionLayout::NullableUnwrapped { .. } => true, UnionLayout::NullableWrapped { .. } | UnionLayout::NullableUnwrapped { .. } => true,
} }
} }