From 5235ba71dd36756a44b0607eb54186b60c836afe Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 16 Mar 2020 12:41:19 +0800 Subject: [PATCH] Run examples with full optimizations. --- examples/repl.rs | 3 ++- examples/rhai_runner.rs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/repl.rs b/examples/repl.rs index 76bdcd48..1187d1c9 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -1,6 +1,7 @@ +use rhai::{Engine, EvalAltResult, Scope, AST}; + #[cfg(not(feature = "no_optimize"))] use rhai::OptimizationLevel; -use rhai::{Engine, EvalAltResult, Scope, AST}; use std::{ io::{stdin, stdout, Write}, diff --git a/examples/rhai_runner.rs b/examples/rhai_runner.rs index 59fe6770..4da91feb 100644 --- a/examples/rhai_runner.rs +++ b/examples/rhai_runner.rs @@ -1,6 +1,8 @@ +use rhai::{Engine, EvalAltResult}; + #[cfg(not(feature = "no_optimize"))] use rhai::OptimizationLevel; -use rhai::{Engine, EvalAltResult}; + use std::{env, fs::File, io::Read, iter, process::exit}; fn padding(pad: &str, len: usize) -> String {