mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy
This commit is contained in:
parent
d55b1a2e87
commit
f8bfd9a9f4
1 changed files with 2 additions and 5 deletions
|
@ -438,7 +438,7 @@ fn unify_tag_union(
|
||||||
let recursion_var = match recursion {
|
let recursion_var = match recursion {
|
||||||
(None, None) => None,
|
(None, None) => None,
|
||||||
(Some(v), None) | (None, Some(v)) => Some(v),
|
(Some(v), None) | (None, Some(v)) => Some(v),
|
||||||
(Some(v1), Some(v2)) => Some(v1),
|
(Some(v1), Some(_v2)) => Some(v1),
|
||||||
};
|
};
|
||||||
|
|
||||||
if unique_tags1.is_empty() {
|
if unique_tags1.is_empty() {
|
||||||
|
@ -1239,8 +1239,5 @@ fn gather_tags(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_recursion_var(subs: &Subs, var: Variable) -> bool {
|
fn is_recursion_var(subs: &Subs, var: Variable) -> bool {
|
||||||
match subs.get_without_compacting(var).content {
|
matches!(subs.get_without_compacting(var).content, Content::RecursionVar { .. })
|
||||||
Content::RecursionVar { .. } => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue