Skip to content

Commit

Permalink
Remove redundant packages
Browse files Browse the repository at this point in the history
Ref #2
  • Loading branch information
alvinhochun committed Jun 17, 2020
1 parent 30e6ad6 commit 8d74e50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wasm-module/src/scripting.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rhai::packages::{ArithmeticPackage, EvalPackage, LogicPackage, Package};
use rhai::packages::{EvalPackage, Package};

pub fn run_script(
script: &str,
Expand All @@ -7,8 +7,6 @@ pub fn run_script(
) -> Result<String, String> {
let engine = {
let mut engine = rhai::Engine::new();
engine.load_package(ArithmeticPackage::new().get());
engine.load_package(LogicPackage::new().get());
engine.load_package(EvalPackage::new().get());
engine.on_print(move |s| print_callback(s));
engine.on_debug(move |s| debug_callback(s));
Expand Down

0 comments on commit 8d74e50

Please sign in to comment.