diff --git a/src/codegen.rs b/src/codegen.rs index 7297b72c..bc675640 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -296,11 +296,10 @@ impl DebrayAllocator { self.mark_var_in_non_callable(var_num, term_loc, vr, code); temp_v!(arg) } else { - match &self.var_data.records[var_num].allocation { - VarAlloc::Perm(_, PermVarAllocation::Pending) => { - self.mark_var_in_non_callable(var_num, term_loc, vr, code); - } - _ => {} + if let VarAlloc::Perm(_, PermVarAllocation::Pending) = + &self.var_data.records[var_num].allocation + { + self.mark_var_in_non_callable(var_num, term_loc, vr, code); } self.increment_running_count(var_num);