resistor-color: Use color in unimplemented! message
ResistorColor implements Debug and has to since it's used in an
`assert_eq`, so we are adding no additional restrictions and improving
clarity by incorporating it into the unimplemented! message.
@@ -12,8 +12,8 @@ pub enum ResistorColor {
Yellow,
}
-pub fn color_to_value(_color: ResistorColor) -> u32 {
- unimplemented!("convert a color into a numerical representation")
+pub fn color_to_value(color: ResistorColor) -> u32 {
+ unimplemented!("convert color {color:?} into a numerical representation")
}
pub fn value_to_color_string(value: u32) -> String {
