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