Change field names of EvalState.

This commit is contained in:
Stephen Chung
2021-07-26 10:03:46 +08:00
parent c7498503ba
commit 2c50738c6c
3 changed files with 18 additions and 17 deletions

View File

@@ -840,12 +840,12 @@ impl Engine {
// Evaluate the AST
let mut new_state = EvalState::new();
new_state.source = state.source.clone();
new_state.operations = state.operations;
new_state.num_operations = state.num_operations;
let result =
self.eval_global_statements(scope, mods, &mut new_state, statements, lib, level);
state.operations = new_state.operations;
state.num_operations = new_state.num_operations;
result
}