From e8c0adb90d536cd74158a8eaa2a5153b7a985884 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 22 Apr 2020 19:10:13 +0800 Subject: [PATCH] Fix benchmark. --- benches/engine.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benches/engine.rs b/benches/engine.rs index 49c67a92..1b04cd26 100644 --- a/benches/engine.rs +++ b/benches/engine.rs @@ -3,7 +3,7 @@ ///! Test evaluating expressions extern crate test; -use rhai::{Array, CorePackage, Engine, Map, Package, RegisterFn, INT}; +use rhai::{Array, Engine, Map, RegisterFn, INT}; use test::Bencher; #[bench] @@ -18,6 +18,7 @@ fn bench_engine_new_raw(bench: &mut Bencher) { #[bench] fn bench_engine_new_raw_core(bench: &mut Bencher) { + use rhai::packages::*; let package = CorePackage::new(); bench.iter(|| {