File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1+ use core:: error:: Error ;
12use criterion:: { criterion_group, criterion_main, Criterion } ;
23use prost:: Message ;
3- use std:: error:: Error ;
44
55pub mod benchmarks {
66 include ! ( concat!( env!( "OUT_DIR" ) , "/benchmarks.rs" ) ) ;
Original file line number Diff line number Diff line change @@ -164,8 +164,7 @@ impl fmt::Display for DurationError {
164164 }
165165}
166166
167- #[ cfg( feature = "std" ) ]
168- impl std:: error:: Error for DurationError { }
167+ impl core:: error:: Error for DurationError { }
169168
170169impl FromStr for Duration {
171170 type Err = DurationError ;
Original file line number Diff line number Diff line change @@ -185,8 +185,7 @@ impl fmt::Display for TimestampError {
185185 }
186186}
187187
188- #[ cfg( feature = "std" ) ]
189- impl std:: error:: Error for TimestampError { }
188+ impl core:: error:: Error for TimestampError { }
190189
191190#[ cfg( feature = "std" ) ]
192191impl TryFrom < Timestamp > for std:: time:: SystemTime {
Original file line number Diff line number Diff line change @@ -145,8 +145,7 @@ impl fmt::Display for DecodeErrorKind {
145145 }
146146}
147147
148- #[ cfg( feature = "std" ) ]
149- impl std:: error:: Error for DecodeError { }
148+ impl core:: error:: Error for DecodeError { }
150149
151150#[ cfg( feature = "std" ) ]
152151impl From < DecodeError > for std:: io:: Error {
@@ -196,8 +195,7 @@ impl fmt::Display for EncodeError {
196195 }
197196}
198197
199- #[ cfg( feature = "std" ) ]
200- impl std:: error:: Error for EncodeError { }
198+ impl core:: error:: Error for EncodeError { }
201199
202200#[ cfg( feature = "std" ) ]
203201impl From < EncodeError > for std:: io:: Error {
@@ -220,8 +218,7 @@ impl fmt::Display for UnknownEnumValue {
220218 }
221219}
222220
223- #[ cfg( feature = "std" ) ]
224- impl std:: error:: Error for UnknownEnumValue { }
221+ impl core:: error:: Error for UnknownEnumValue { }
225222
226223#[ cfg( test) ]
227224mod test {
You can’t perform that action at this time.
0 commit comments