File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,7 @@ pub enum Error {
190
190
Io ( std:: io:: Error ) ,
191
191
}
192
192
193
- #[ cfg( feature = "std" ) ]
194
- impl std:: error:: Error for Error { }
193
+ impl core:: error:: Error for Error { }
195
194
196
195
impl core:: fmt:: Display for Error {
197
196
fn fmt ( & self , fmt : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
Original file line number Diff line number Diff line change @@ -50,9 +50,8 @@ impl core::fmt::Display for PldmError {
50
50
}
51
51
}
52
52
53
- #[ cfg( feature = "std" ) ]
54
- impl std:: error:: Error for PldmError {
55
- fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
53
+ impl core:: error:: Error for PldmError {
54
+ fn source ( & self ) -> Option < & ( dyn core:: error:: Error + ' static ) > {
56
55
match self {
57
56
Self :: Mctp ( s) => Some ( s) ,
58
57
_ => None ,
You can’t perform that action at this time.
0 commit comments