Browse Source

Fix warning

master
Stephen 1 month ago
parent
commit
cfe256ac1e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/compiler.rs

+ 1
- 1
src/compiler.rs View File

@ -272,7 +272,7 @@ impl StmtVisitor<()> for Compiler {
self.emit_opcode(OpCode::Ret);
}
fn visit_binary_assign_stmt(&mut self, stmt: &BinaryAssignStmt, _: usize) -> () {
fn visit_binary_assign_stmt(&mut self, stmt: &BinaryAssignStmt, _: usize) {
let var_id = self.get_variable(stmt.name.clone());
self.emit_opcode(OpCode::Var);
self.emit_byte(var_id);


Loading…
Cancel
Save