File tree Expand file tree Collapse file tree 5 files changed +7
-12
lines changed Expand file tree Collapse file tree 5 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ authors = [
2626]
2727license = " Apache-2.0"
2828repository = " https://github.com/tokio-rs/prost"
29- rust-version = " 1.71.1 "
29+ rust-version = " 1.81 "
3030edition = " 2021"
3131
3232[profile .bench ]
Original file line number Diff line number Diff line change 11use criterion:: { criterion_group, criterion_main, Criterion } ;
22use prost:: Message ;
3- use std :: error:: Error ;
3+ use core :: error:: Error ;
44
55pub mod benchmarks {
66 include ! ( concat!( env!( "OUT_DIR" ) , "/benchmarks.rs" ) ) ;
Original file line number Diff line number Diff line change @@ -172,8 +172,7 @@ impl fmt::Display for DurationError {
172172 }
173173}
174174
175- #[ cfg( feature = "std" ) ]
176- impl std:: error:: Error for DurationError { }
175+ impl core:: error:: Error for DurationError { }
177176
178177impl FromStr for Duration {
179178 type Err = DurationError ;
Original file line number Diff line number Diff line change @@ -199,8 +199,7 @@ impl fmt::Display for TimestampError {
199199 }
200200}
201201
202- #[ cfg( feature = "std" ) ]
203- impl std:: error:: Error for TimestampError { }
202+ impl core:: error:: Error for TimestampError { }
204203
205204#[ cfg( feature = "std" ) ]
206205impl TryFrom < Timestamp > for std:: time:: SystemTime {
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ impl fmt::Display for DecodeError {
7171 }
7272}
7373
74- #[ cfg( feature = "std" ) ]
75- impl std:: error:: Error for DecodeError { }
74+ impl core:: error:: Error for DecodeError { }
7675
7776#[ cfg( feature = "std" ) ]
7877impl From < DecodeError > for std:: io:: Error {
@@ -122,8 +121,7 @@ impl fmt::Display for EncodeError {
122121 }
123122}
124123
125- #[ cfg( feature = "std" ) ]
126- impl std:: error:: Error for EncodeError { }
124+ impl core:: error:: Error for EncodeError { }
127125
128126#[ cfg( feature = "std" ) ]
129127impl From < EncodeError > for std:: io:: Error {
@@ -146,5 +144,4 @@ impl fmt::Display for UnknownEnumValue {
146144 }
147145}
148146
149- #[ cfg( feature = "std" ) ]
150- impl std:: error:: Error for UnknownEnumValue { }
147+ impl core:: error:: Error for UnknownEnumValue { }
You can’t perform that action at this time.
0 commit comments