mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
feat(unify): clippy warnings
This commit is contained in:
parent
3098bcf61d
commit
36ec1a0f56
1 changed files with 4 additions and 4 deletions
|
@ -1099,8 +1099,8 @@ fn unify_flat_type(
|
|||
} else {
|
||||
mismatch!(
|
||||
"Trying to unify two flat types that are incompatible: {:?} ~ {:?}",
|
||||
TagUnion(tags.clone(), ext.clone()),
|
||||
Func(args.clone(), closure.clone(), ret.clone())
|
||||
TagUnion(tags.clone(), *ext),
|
||||
Func(args.clone(), *closure, *ret)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1134,8 +1134,8 @@ fn unify_flat_type(
|
|||
} else {
|
||||
mismatch!(
|
||||
"Trying to unify two flat types that are incompatible: {:?} ~ {:?}",
|
||||
Func(args.clone(), closure.clone(), ret.clone()),
|
||||
TagUnion(tags.clone(), ext.clone()),
|
||||
Func(args.clone(), *closure, *ret),
|
||||
TagUnion(tags.clone(), *ext),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue