Skip to content

Commit

Permalink
ignore a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anisse committed Nov 18, 2024
1 parent 561d02e commit b77459a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ impl MemoryMapper for SegaGGMapper {
}

#[derive(PartialEq, Eq, Clone, Debug)]
#[allow(dead_code)]
enum Dest {
Rom { start: u32 },
Ram { start: u16 },
Expand Down
4 changes: 4 additions & 0 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ impl io::Device for System {
Ok(())
}
_ => Ok(()),
#[allow(unreachable_patterns)]
/* This is only for debugging missing devices */
_ => Err(format!(
"unknown system port output write address @{:04X} {:02X}",
addr, val
Expand All @@ -61,6 +63,8 @@ impl io::Device for System {
match addr & 0xFF {
0x0 => Ok((!(*self.start_button.borrow() as u8) << 7) | u8::from(&self.region)),
_ => Ok(0),
#[allow(unreachable_patterns)]
/* This is only for debugging missing devices */
_ => Err(format!("unknown system port input address @{:04X}", addr)),
}
}
Expand Down

0 comments on commit b77459a

Please sign in to comment.