chore: standardize the error message of a subet of unreachable! calls

This commit is contained in:
2021-03-15 23:51:40 -05:00
parent 3b5d94adfc
commit ef4cc8c3b6
3 changed files with 9 additions and 12 deletions

View File

@@ -197,7 +197,7 @@ impl From<u8> for GrayShade {
0b01 => GrayShade::LightGray,
0b10 => GrayShade::DarkGray,
0b11 => GrayShade::Black,
_ => unreachable!("{:#04X} is not a valid Shade of Gray", byte),
_ => unreachable!("{:#04X} is not a valid value for GrayShade", byte),
}
}
}