mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Clippy
This commit is contained in:
parent
b61481c6e7
commit
3906c5c200
1 changed files with 1 additions and 3 deletions
|
@ -696,14 +696,12 @@ fn fix_tag_union_recursion_variable(
|
||||||
Structure(FlatType::RecursiveTagUnion(..))
|
Structure(FlatType::RecursiveTagUnion(..))
|
||||||
));
|
));
|
||||||
|
|
||||||
let f = subs.get_content_without_compacting(tag_union_promoted_to_recursive);
|
|
||||||
|
|
||||||
let has_recursing_recursive_variable = subs
|
let has_recursing_recursive_variable = subs
|
||||||
.occurs_including_recursion_vars(tag_union_promoted_to_recursive)
|
.occurs_including_recursion_vars(tag_union_promoted_to_recursive)
|
||||||
.is_err();
|
.is_err();
|
||||||
|
|
||||||
if !has_recursing_recursive_variable {
|
if !has_recursing_recursive_variable {
|
||||||
merge(subs, ctx, recursion_var.clone())
|
merge(subs, ctx, *recursion_var)
|
||||||
} else {
|
} else {
|
||||||
vec![]
|
vec![]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue