Remove unnecessary ref

This commit is contained in:
Richard Feldman 2019-11-14 08:43:34 +01:00
parent 2c3307d4ce
commit 9ee5fad6ab

View file

@ -39,13 +39,13 @@ pub fn solve(env: &Env, subs: &mut Subs, constraint: &Constraint) {
subs.union(actual, expected); subs.union(actual, expected);
} }
Let(let_con) => { Let(let_con) => {
match let_con.ret_constraint { match &let_con.ret_constraint {
True => { True => {
// If the return expression is guaranteed to solve, // If the return expression is guaranteed to solve,
// solve the assignments themselves and move on. // solve the assignments themselves and move on.
solve(env, subs, &let_con.assignments_constraint) solve(env, subs, &let_con.assignments_constraint)
} }
ref ret_con => { ret_con => {
// Solve the assignments' constraints first. // Solve the assignments' constraints first.
solve(env, subs, &let_con.assignments_constraint); solve(env, subs, &let_con.assignments_constraint);