diff options
| author | Wilfried Chauveau <[email protected]> | 2021-10-29 20:37:00 +0100 |
|---|---|---|
| committer | Wilfried Chauveau <[email protected]> | 2021-10-29 20:37:00 +0100 |
| commit | 2d475b80d97af955fcd058a19de71276502e8e35 (patch) | |
| tree | 99ba5c92fb7668ec5f814497ab45e224040b4096 /embassy-traits/src | |
| parent | 4d75035098e813e667a21bfcd0d3321794e53d84 (diff) | |
Add `IntoIterator` trait bound on Future trait's parameter
The parameter is also renamed from `U` to `V` to avoid confusion with the
type parameter `U` from the `write_iter` function that follows.
Diffstat (limited to 'embassy-traits/src')
| -rw-r--r-- | embassy-traits/src/i2c.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-traits/src/i2c.rs b/embassy-traits/src/i2c.rs index 7e2b9a773..0fdf50a12 100644 --- a/embassy-traits/src/i2c.rs +++ b/embassy-traits/src/i2c.rs | |||
| @@ -176,9 +176,9 @@ pub trait WriteIter<A: AddressMode = SevenBitAddress> { | |||
| 176 | /// Error type | 176 | /// Error type |
| 177 | type Error; | 177 | type Error; |
| 178 | 178 | ||
| 179 | type WriteIterFuture<'a, U>: Future<Output = Result<(), Self::Error>> + 'a | 179 | type WriteIterFuture<'a, V>: Future<Output = Result<(), Self::Error>> + 'a |
| 180 | where | 180 | where |
| 181 | U: 'a, | 181 | V: 'a + IntoIterator<Item = u8>, |
| 182 | Self: 'a; | 182 | Self: 'a; |
| 183 | 183 | ||
| 184 | /// Sends bytes to slave with address `address` | 184 | /// Sends bytes to slave with address `address` |
