File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
18
18
19
19
pub use crate :: blocking:: i2c:: { AddressMode , SevenBitAddress , TenBitAddress } ;
20
- use core:: { future:: Future , mem :: MaybeUninit } ;
20
+ use core:: future:: Future ;
21
21
22
22
/// Async read
23
23
pub trait Read < A : AddressMode = SevenBitAddress > {
@@ -46,7 +46,7 @@ pub trait Read<A: AddressMode = SevenBitAddress> {
46
46
/// - `MAK` = master acknowledge
47
47
/// - `NMAK` = master no acknowledge
48
48
/// - `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 > ;
50
50
}
51
51
52
52
/// Async write
@@ -112,6 +112,6 @@ pub trait WriteRead<A: AddressMode = SevenBitAddress> {
112
112
& ' a mut self ,
113
113
address : A ,
114
114
write : & ' a [ u8 ] ,
115
- read : & ' a mut [ MaybeUninit < u8 > ] ,
115
+ read : & ' a mut [ u8 ] ,
116
116
) -> Self :: WriteReadFuture < ' a > ;
117
117
}
You can’t perform that action at this time.
0 commit comments