From 2d475b80d97af955fcd058a19de71276502e8e35 Mon Sep 17 00:00:00 2001
From: Wilfried Chauveau <wilfried.chauveau@ithinuel.me>
Date: Fri, 29 Oct 2021 20:37:00 +0100
Subject: [PATCH] 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.
---
 embassy-traits/src/i2c.rs | 4 ++--
 1 file 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> {
     /// 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`