mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Some formatting
This commit is contained in:
1 parent
4897e10714
commit
fb69804a30
1 file changed
+2
-1
+2
-1
@@ -42,7 +42,8 @@ pub fn compile(
|
||||
Mode::Single => match parser::parse_program(source) {
|
||||
Ok(ast) => {
|
||||
for statement in ast.statements {
|
||||
if let &ast::StatementType::Expression { ref expression } = &statement.statement {
|
||||
if let &ast::StatementType::Expression { ref expression } = &statement.statement
|
||||
{
|
||||
compiler.compile_expression(expression);
|
||||
compiler.emit(Instruction::PrintExpr);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user