diff --git a/cli/src/repl.rs b/cli/src/repl.rs index 276aaa5d41..82c184a061 100644 --- a/cli/src/repl.rs +++ b/cli/src/repl.rs @@ -263,7 +263,7 @@ fn gen(src: &[u8], target: Triple, opt_level: OptLevel) -> Result( match scope.top_level_thunks.get(symbol) { Some((_layout, function_value)) => { // this is a 0-argument thunk, evaluate it! - let call = env.builder.build_call( - function_value.clone(), - &[], - "evaluate_top_level_thunk", - ); + let call = + env.builder + .build_call(*function_value, &[], "evaluate_top_level_thunk"); call.try_as_basic_value().left().unwrap() } diff --git a/compiler/types/src/solved_types.rs b/compiler/types/src/solved_types.rs index 7b4bf4976d..81f13895a1 100644 --- a/compiler/types/src/solved_types.rs +++ b/compiler/types/src/solved_types.rs @@ -202,7 +202,6 @@ impl SolvedType { } pub fn from_var(subs: &Subs, var: Variable) -> Self { - // seen: MutSet, let mut seen = RecursionVars::default(); Self::from_var_help(subs, &mut seen, var) }