chore: update error messages in expect() calls

This commit is contained in:
2021-07-08 18:50:58 -05:00
parent 4f3fc3136d
commit 9b3a5d49d2
4 changed files with 16 additions and 10 deletions

View File

@@ -2277,13 +2277,13 @@ impl From<Cycle> for u32 {
impl InstrRegisterPair {
fn to_register_pair(self) -> RegisterPair {
RegisterPair::try_from(self).expect("Failed to convert InstrRegisterPair to RegisterPair")
RegisterPair::try_from(self).expect("InstrRegisterPair is a valid RegisterPair")
}
}
impl InstrRegister {
fn to_register(self) -> Register {
Register::try_from(self).expect("Failed to convert from InstrRegister to Register")
Register::try_from(self).expect("InstrRegister is a valid Register")
}
}