11use core:: fmt:: { self , Display , Formatter } ;
22#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
33pub use core:: num:: TryFromIntError ;
4- #[ cfg( feature = "std" ) ]
5- use std:: error:: Error ;
4+ use core:: error:: Error ;
65
76#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
87use rust_decimal:: Decimal ;
@@ -21,7 +20,6 @@ impl Display for ExceededBoundsError {
2120}
2221
2322#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
24- #[ cfg( feature = "std" ) ]
2523impl Error for ExceededBoundsError { }
2624
2725#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
@@ -50,7 +48,6 @@ impl Display for ValueParseError {
5048}
5149
5250#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
53- #[ cfg( feature = "std" ) ]
5451impl Error for ValueParseError { }
5552
5653/// The error type returned when parsing units.
@@ -111,7 +108,6 @@ impl Display for UnitParseError {
111108 }
112109}
113110
114- #[ cfg( feature = "std" ) ]
115111impl Error for UnitParseError { }
116112
117113#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
@@ -150,5 +146,4 @@ impl Display for ParseError {
150146}
151147
152148#[ cfg( any( feature = "byte" , feature = "bit" ) ) ]
153- #[ cfg( feature = "std" ) ]
154149impl Error for ParseError { }
0 commit comments