@@ -976,10 +976,10 @@ impl core::fmt::Display for FromHexError {
976
976
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
977
977
match & * self {
978
978
FromHexError :: ParseIntError ( e) => {
979
- write ! ( f, "ParseIntError: {}" , e)
979
+ write ! ( f, "{}" , e)
980
980
}
981
981
FromHexError :: HexFormatError ( s) => {
982
- write ! ( f, "HexFormatError: {}, please use format '#fff', 'fff', '#ffffff' or\
982
+ write ! ( f, "{}, please use format '#fff', 'fff', '#ffffff' or\
983
983
'ffffff'.", s)
984
984
}
985
985
}
@@ -1184,7 +1184,7 @@ mod test {
1184
1184
assert ! ( c. is_err( ) ) ;
1185
1185
assert_eq ! (
1186
1186
format!( "{}" , c. err( ) . unwrap( ) ) ,
1187
- "ParseIntError: invalid digit found in string"
1187
+ "invalid digit found in string"
1188
1188
) ;
1189
1189
let c = Rgb :: < Srgb , u8 > :: from_str ( "#08f" ) ;
1190
1190
assert_eq ! ( c. unwrap( ) , Rgb :: <Srgb , u8 >:: new( 0 , 136 , 255 ) ) ;
@@ -1196,7 +1196,7 @@ mod test {
1196
1196
assert ! ( c. is_err( ) ) ;
1197
1197
assert_eq ! (
1198
1198
format!( "{}" , c. err( ) . unwrap( ) ) ,
1199
- "HexFormatError: invalid hex code format, \
1199
+ "invalid hex code format, \
1200
1200
please use format \' #fff\' , \' fff\' , \' #ffffff\' or\' ffffff\' ."
1201
1201
) ;
1202
1202
let c = Rgb :: < Srgb , u8 > :: from_str ( "da0bce" ) ;
0 commit comments