Do not print result if ().
This commit is contained in:
parent
1ace4b474c
commit
090217e1cd
@ -159,10 +159,11 @@ fn main() {
|
|||||||
// Evaluate
|
// Evaluate
|
||||||
engine.eval_ast_with_scope::<Dynamic>(&mut scope, &main_ast)
|
engine.eval_ast_with_scope::<Dynamic>(&mut scope, &main_ast)
|
||||||
}) {
|
}) {
|
||||||
Ok(result) => {
|
Ok(result) if !result.is::<()>() => {
|
||||||
println!("=> {:?}", result);
|
println!("=> {:?}", result);
|
||||||
println!();
|
println!();
|
||||||
}
|
}
|
||||||
|
Ok(_) => (),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!();
|
println!();
|
||||||
print_error(&input, err);
|
print_error(&input, err);
|
||||||
|
Loading…
Reference in New Issue
Block a user