Fix builds.

This commit is contained in:
Stephen Chung
2022-05-21 22:13:02 +08:00
parent 1abec0a8a8
commit ee886fc719
3 changed files with 4 additions and 8 deletions

View File

@@ -26,11 +26,7 @@ impl Engine {
self.lex_raw(&scripts, self.token_mapper.as_ref().map(Box::as_ref));
let mut state = ParseState::new(self, scope, tokenizer_control);
let ast = self.parse(
&mut stream.peekable(),
&mut state,
self.optimization_level(),
)?;
let ast = self.parse(&mut stream.peekable(), &mut state, self.optimization_level)?;
self.run_ast_with_scope(scope, &ast)
}