mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
clippy
This commit is contained in:
parent
e9c77a1d30
commit
c449582951
@ -1290,10 +1290,7 @@ fn symbol_layout_reusability<'a>(
|
|||||||
/**
|
/**
|
||||||
Check if a union layout can be reused. by verifying if the tag is not nullable.
|
Check if a union layout can be reused. by verifying if the tag is not nullable.
|
||||||
*/
|
*/
|
||||||
fn can_reuse_union_layout_tag<'a>(
|
fn can_reuse_union_layout_tag(union_layout: UnionLayout, tag_id_option: Option<Tag>) -> Reuse {
|
||||||
union_layout: UnionLayout<'a>,
|
|
||||||
tag_id_option: Option<Tag>,
|
|
||||||
) -> Reuse<'a> {
|
|
||||||
match union_layout {
|
match union_layout {
|
||||||
UnionLayout::NonRecursive(_) => Reuse::Nonreusable,
|
UnionLayout::NonRecursive(_) => Reuse::Nonreusable,
|
||||||
// Non nullable union layouts
|
// Non nullable union layouts
|
||||||
|
Loading…
Reference in New Issue
Block a user