You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATING-0.2-1.0.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ and we can add them back in a future 1.x release.
120
120
### Impractical traits
121
121
122
122
The [`digital::IoPin` trait][iopin] and the [`adc` traits][adc] have been deemed impractical for use and have thus been removed.
123
-
Please feel free to comment on the appropriate issue if you need any of these traitsk and propose a solution.
123
+
Please feel free to comment on the appropriate issue if you need any of these traits and propose a solution.
124
124
125
125
### Serial traits
126
126
@@ -158,7 +158,7 @@ When upgrading code to `embedded-hal` 1.0, it is critical to implement/use the r
158
158
- Optionally, if the API *does* manage a CS pin automatically, you may implement `SpiDevice`.
159
159
- This is required if the underlying API requires it to manage the CS pin, like `spidev` on Linux.
160
160
161
-
Do not implement `SpiBus` and `SpiDevice` on the same struct, since this is never correct. When there's no CS pin being controlled you must implement only `SpiBus`, and when there is, implement only `SpiDevice`. If you want to offer both APIs, implement them on separate structs so the user has to cohose one or the other.
161
+
Do not implement `SpiBus` and `SpiDevice` on the same struct, since this is never correct. When there's no CS pin being controlled you must implement only `SpiBus`, and when there is, implement only `SpiDevice`. If you want to offer both APIs, implement them on separate structs so the user has to choose one or the other.
162
162
163
163
### For driver crates
164
164
@@ -335,7 +335,7 @@ the same across traits.
335
335
To overcome this, please import the traits you wish to use individually.
336
336
337
337
If you run into ambiguous method calls, you can disambiguate using the fully-qualified syntax (the error message
338
-
from the compiler should already tell you how it should look like in your case) or tweak your trait imports or code
338
+
from the compiler should already tell you how it should look in your case) or tweak your trait imports or code
339
339
to limit the scope of the trait imports and thus avoid the ambiguity.
340
340
Please note that it is also possible to import traits *inside a function*.
0 commit comments