Run examples with full optimizations.

This commit is contained in:
Stephen Chung 2020-03-16 12:41:19 +08:00
parent 6d33a91d09
commit 5235ba71dd
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
use rhai::{Engine, EvalAltResult, Scope, AST};
#[cfg(not(feature = "no_optimize"))] #[cfg(not(feature = "no_optimize"))]
use rhai::OptimizationLevel; use rhai::OptimizationLevel;
use rhai::{Engine, EvalAltResult, Scope, AST};
use std::{ use std::{
io::{stdin, stdout, Write}, io::{stdin, stdout, Write},

View File

@ -1,6 +1,8 @@
use rhai::{Engine, EvalAltResult};
#[cfg(not(feature = "no_optimize"))] #[cfg(not(feature = "no_optimize"))]
use rhai::OptimizationLevel; use rhai::OptimizationLevel;
use rhai::{Engine, EvalAltResult};
use std::{env, fs::File, io::Read, iter, process::exit}; use std::{env, fs::File, io::Read, iter, process::exit};
fn padding(pad: &str, len: usize) -> String { fn padding(pad: &str, len: usize) -> String {