Skip to content

Commit

Permalink
tui: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Jan 3, 2024
1 parent 4880ccc commit 9317cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emulator/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ impl App {
}

pub fn memory_slice(&self, start: u16, end: u16) -> &[u8] {
&self.memory.slice(start, end)
self.memory.slice(start, end)
}
}
2 changes: 1 addition & 1 deletion src/emulator/tui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn disassembly(app: &mut App) -> Paragraph {
// Would be possible to disassemble the memory instead of the loaded program
let pc = app.state().pc.get() as usize;
let mut addr = app.program_start as usize;
for (_, node) in app.disassembled_program.iter().enumerate() {
for node in app.disassembled_program.iter() {
if let ASTNode::Instruction(ins_node) = node {
let line = listing::Listing::generate_line(addr, ins_node);
if addr == pc {
Expand Down

0 comments on commit 9317cf6

Please sign in to comment.