File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
11
11
12
12
* For ` Runner::input_byte ` the buffer ` B ` does not need to be ` Sized `
13
13
14
+ ### Added
15
+
16
+ * ` impl core::error::Error for Error ` on rust >= 1.81
17
+
14
18
## [ v0.6.0] - 2024-08-30
15
19
16
20
### Changed
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ readme = "README.md"
11
11
[dependencies ]
12
12
embedded-io = " 0.6.1"
13
13
noline = { version = " 0.5.0" , optional = true }
14
+ rustversion = " 1.0.17"
14
15
15
16
[features ]
16
17
default = [" echo" ]
Original file line number Diff line number Diff line change @@ -127,6 +127,15 @@ pub enum Error {
127
127
NotFound ,
128
128
}
129
129
130
+ impl core:: fmt:: Display for Error {
131
+ fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
132
+ core:: fmt:: Debug :: fmt ( self , f)
133
+ }
134
+ }
135
+
136
+ #[ rustversion:: since( 1.81 ) ]
137
+ impl core:: error:: Error for Error { }
138
+
130
139
/// Looks for the named parameter in the parameter list of the item, then
131
140
/// finds the correct argument.
132
141
///
You can’t perform that action at this time.
0 commit comments