Commit b383c5d
committed
implement
this API has been stabilised with Rust 1.81.0. accordingly the MSRV has
been raised.
in order to implement `cause` the underlying error from the HAL must
also implement `core::error::Error`. otherwise the trait bound will not
be satisfied. as the trait has only just been stabilisied it is not yet
implemented by any HAL (except for `embedded-hal-mock` since it's
`std`).
however, for GPIO operations most HALs will anyway just use
`core::convert::Infallible` which in turn already implements
`core::error::Error`, thus this should work out of the box.core::error::Error
1 parent 1e4680d commit b383c5d
File tree
5 files changed
+62
-6
lines changed- .github/workflows
- src
5 files changed
+62
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
36 | 69 | | |
37 | 70 | | |
38 | 71 | | |
39 | 72 | | |
40 | 73 | | |
41 | 74 | | |
42 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
43 | 94 | | |
44 | 95 | | |
45 | 96 | | |
| |||
89 | 140 | | |
90 | 141 | | |
91 | 142 | | |
| 143 | + | |
| 144 | + | |
92 | 145 | | |
93 | 146 | | |
94 | 147 | | |
| |||
113 | 166 | | |
114 | 167 | | |
115 | 168 | | |
116 | | - | |
117 | 169 | | |
118 | | - | |
119 | | - | |
| 170 | + | |
| 171 | + | |
120 | 172 | | |
121 | 173 | | |
122 | 174 | | |
| |||
127 | 179 | | |
128 | 180 | | |
129 | 181 | | |
| 182 | + | |
| 183 | + | |
130 | 184 | | |
131 | 185 | | |
132 | 186 | | |
| |||
0 commit comments