diff --git a/compiler/constrain/src/expr.rs b/compiler/constrain/src/expr.rs index c4c69b6208..32d449f7b0 100644 --- a/compiler/constrain/src/expr.rs +++ b/compiler/constrain/src/expr.rs @@ -1985,8 +1985,8 @@ pub fn rec_defs_help( def, &mut def_pattern_state, &mut state, - &arguments, - &arg_types, + arguments, + arg_types, ); let pattern_types = arguments.iter().map(|a| Type::Variable(a.0)).collect(); diff --git a/compiler/mono/src/ir.rs b/compiler/mono/src/ir.rs index 751c38fe4f..1b0875c14a 100644 --- a/compiler/mono/src/ir.rs +++ b/compiler/mono/src/ir.rs @@ -5762,7 +5762,7 @@ fn to_opt_branches<'a>( Guard::NoGuard }; - if when_branch.redundant.is_redundant(&env.subs) { + if when_branch.redundant.is_redundant(env.subs) { // Don't codegen this branch since it's redundant. continue; }