Skip to content

Commit 22ec134

Browse files
committed
Remove MaybeUninit from futures::i2c
1 parent 2e16b79 commit 22ec134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/futures/i2c.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub trait Read<A: AddressMode = SevenBitAddress> {
4646
/// - `MAK` = master acknowledge
4747
/// - `NMAK` = master no acknowledge
4848
/// - `SP` = stop condition
49-
fn read<'a>(&'a mut self, address: A, read: &'a mut [MaybeUninit<u8>]) -> Self::ReadFuture<'a>;
49+
fn read<'a>(&'a mut self, address: A, read: &'a mut [u8]) -> Self::ReadFuture<'a>;
5050
}
5151

5252
/// Async write
@@ -112,6 +112,6 @@ pub trait WriteRead<A: AddressMode = SevenBitAddress> {
112112
&'a mut self,
113113
address: A,
114114
write: &'a [u8],
115-
read: &'a mut [MaybeUninit<u8>],
115+
read: &'a mut [u8],
116116
) -> Self::WriteReadFuture<'a>;
117117
}

0 commit comments

Comments
 (0)