Skip to content

Commit

Permalink
disasm: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Jan 13, 2024
1 parent e961e03 commit a083fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/disassembler/listing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ pub fn generate(program_addr: usize, ast: AST) -> String {
string.push_str("*\n");
first_double = false;
} else if !same_as_last {
string.push_str(generate_line(current_address, &ins).as_str());
string.push_str(generate_line(current_address, ins).as_str());
}
current_address += ins.size();
}

last_node = Some(&node);
last_node = Some(node);
}

string.clone()
Expand Down

0 comments on commit a083fba

Please sign in to comment.