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.
This commit is contained in:
Wilfried Chauveau 2021-10-29 20:37:00 +01:00
parent 4d75035098
commit 2d475b80d9
No known key found for this signature in database
GPG Key ID: 0BC4C0B2B0879D6A

View File

@ -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`