CLIPPY IS THE MASTER OF ALL! (especially anal retentiveness)

This commit is contained in:
Emmanuel BENOîT 2022-12-31 13:50:08 +01:00
parent b89e330423
commit da50da4e08

View file

@ -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)
}
}
}