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.
@@ -176,9 +176,9 @@ pub trait WriteIter<A: AddressMode = SevenBitAddress> {
/// Error type
type Error;
- type WriteIterFuture<'a, U>: Future<Output = Result<(), Self::Error>> + 'a
+ type WriteIterFuture<'a, V>: Future<Output = Result<(), Self::Error>> + 'a
where
- U: 'a,
+ V: 'a + IntoIterator<Item = u8>,
Self: 'a;
/// Sends bytes to slave with address `address`
