CLIPPY IS THE MASTER OF ALL! (especially anal retentiveness)
This commit is contained in:
parent
b89e330423
commit
da50da4e08
1 changed files with 2 additions and 3 deletions
|
@ -33,9 +33,8 @@ fn run(source: String) -> ErrorHandler {
|
|||
None => (),
|
||||
Some(ast) => {
|
||||
println!("AST generated ! {}", ast.dump());
|
||||
match evaluate(&mut error_handler, &ast) {
|
||||
Some(v) => println!("Final evaluated value: {:?}", v),
|
||||
None => (),
|
||||
if let Some(v) = evaluate(&mut error_handler, &ast) {
|
||||
println!("Final evaluated value: {:?}", v)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue