Skip to content

Commit

Permalink
Remove MaybeUninit from futures::i2c
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Jul 6, 2021
1 parent 2e16b79 commit 22ec134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/futures/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub trait Read<A: AddressMode = SevenBitAddress> {
/// - `MAK` = master acknowledge
/// - `NMAK` = master no acknowledge
/// - `SP` = stop condition
fn read<'a>(&'a mut self, address: A, read: &'a mut [MaybeUninit<u8>]) -> Self::ReadFuture<'a>;
fn read<'a>(&'a mut self, address: A, read: &'a mut [u8]) -> Self::ReadFuture<'a>;
}

/// Async write
Expand Down Expand Up @@ -112,6 +112,6 @@ pub trait WriteRead<A: AddressMode = SevenBitAddress> {
&'a mut self,
address: A,
write: &'a [u8],
read: &'a mut [MaybeUninit<u8>],
read: &'a mut [u8],
) -> Self::WriteReadFuture<'a>;
}

0 comments on commit 22ec134

Please sign in to comment.