mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Remove unnecessary ref
This commit is contained in:
parent
2c3307d4ce
commit
9ee5fad6ab
1 changed files with 2 additions and 2 deletions
|
@ -39,13 +39,13 @@ pub fn solve(env: &Env, subs: &mut Subs, constraint: &Constraint) {
|
|||
subs.union(actual, expected);
|
||||
}
|
||||
Let(let_con) => {
|
||||
match let_con.ret_constraint {
|
||||
match &let_con.ret_constraint {
|
||||
True => {
|
||||
// If the return expression is guaranteed to solve,
|
||||
// solve the assignments themselves and move on.
|
||||
solve(env, subs, &let_con.assignments_constraint)
|
||||
}
|
||||
ref ret_con => {
|
||||
ret_con => {
|
||||
// Solve the assignments' constraints first.
|
||||
solve(env, subs, &let_con.assignments_constraint);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue