chore: replace select unreachable! macros with todo! and unreachable!

This commit is contained in:
2021-03-22 21:52:28 -05:00
parent 9301a36682
commit 2813b762dd
3 changed files with 7 additions and 10 deletions

View File

@@ -187,7 +187,7 @@ impl MemoryBankController for MBC1 {
Value(0xFF)
}
}
_ => unimplemented!(),
_ => unreachable!("A read from {:#06X} should not be handled by MBC1", addr),
}
}
@@ -209,7 +209,7 @@ impl MemoryBankController for MBC1 {
self.ram[ram_addr as usize] = byte;
}
}
_ => unreachable!("{:#06X} should not be handled by MBC1", addr),
_ => unreachable!("A write to {:#06X} should not be handled by MBC1", addr),
}
}
}