File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
1818
1919pub use crate :: blocking:: i2c:: { AddressMode , SevenBitAddress , TenBitAddress } ;
20- use core:: { future:: Future , mem :: MaybeUninit } ;
20+ use core:: future:: Future ;
2121
2222/// Async read
2323pub trait Read < A : AddressMode = SevenBitAddress > {
@@ -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}
You can’t perform that action at this time.
0 commit comments