FIX - Errors in no_std.

This commit is contained in:
Stephen Chung
2020-03-24 11:21:09 +08:00
parent 3677bd3651
commit 7b06715299
2 changed files with 7 additions and 3 deletions

View File

@@ -7,7 +7,11 @@ fn main() -> Result<(), EvalAltResult> {
let result = engine.eval::<INT>("40 + 2")?;
println!("Answer: {}", 42);
#[cfg(not(feature = "no_std"))]
println!("Answer: {}", result);
#[cfg(feature = "no_std")]
assert_eq!(result, 42);
Ok(())
}