Make all public API's return Box<EvalAltResult> to reduce footprint.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use rhai::{Engine, EvalAltResult, INT};
|
||||
|
||||
fn main() -> Result<(), EvalAltResult> {
|
||||
fn main() -> Result<(), Box<EvalAltResult>> {
|
||||
let engine = Engine::new();
|
||||
|
||||
let result = engine.eval::<INT>("40 + 2")?;
|
||||
|
||||
Reference in New Issue
Block a user