Skip to content

Commit

Permalink
Make smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Apr 25, 2024
1 parent 23da9e1 commit 50902a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/run_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ impl<'a, D: Dialect> RunProgramContext<'a, D> {
None => break,
};
cost += match op {
Operation::Apply => {
let apply_op_res = self.apply_op(cost, effective_max_cost - cost);
augment_cost_errors(apply_op_res, max_cost_ptr)?
}
Operation::Apply => augment_cost_errors(
self.apply_op(cost, effective_max_cost - cost),
max_cost_ptr,
)?,
Operation::ExitGuard => self.exit_guard(cost)?,
Operation::Cons => self.cons_op()?,
Operation::SwapEval => augment_cost_errors(self.swap_eval_op(), max_cost_ptr)?,
Expand Down

0 comments on commit 50902a7

Please sign in to comment.