File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ use core::future::Future;
4242/// Asynchronously wait for a pin to be high.
4343pub trait WaitForHigh {
4444 /// The future returned by the `wait_for_high` function.
45- type HighFuture < ' a > : Future < Output = ( ) > + ' a
45+ type HighFuture < ' a > : Future < Output = ( ) > + ' a
4646 where
4747 Self : ' a ;
4848
Original file line number Diff line number Diff line change 1616//! Since 7-bit addressing is the mode of the majority of I2C devices,
1717//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
1818
19- use core:: { future:: Future , mem:: MaybeUninit } ;
2019pub use crate :: blocking:: i2c:: { AddressMode , SevenBitAddress , TenBitAddress } ;
20+ use core:: { future:: Future , mem:: MaybeUninit } ;
2121
2222/// Async read
2323pub trait Read < A : AddressMode = SevenBitAddress > {
Original file line number Diff line number Diff line change 22//!
33//! This traits use `core::future::Future` and generic associated types.
44
5+ pub mod delay;
6+ pub mod digital;
57pub mod i2c;
68pub mod serial;
79pub mod spi;
8- pub mod delay;
9- pub mod digital;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub trait Read<Word> {
1111 type Error ;
1212
1313 /// The future associated with the `read` method.
14- type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
14+ type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
1515 where
1616 Self : ' a ;
1717
@@ -25,12 +25,12 @@ pub trait Write<Word> {
2525 type Error ;
2626
2727 /// The future associated with the `write` method.
28- type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
28+ type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
2929 where
3030 Self : ' a ;
3131
3232 /// The future associated with the `flush` method.
33- type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
33+ type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
3434 where
3535 Self : ' a ;
3636
Original file line number Diff line number Diff line change 412412
413413pub mod blocking;
414414pub mod fmt;
415- pub mod nb;
416415#[ cfg( feature = "unstable-futures" ) ]
417416pub mod futures;
417+ pub mod nb;
418418
419419mod private {
420420 use crate :: blocking:: i2c:: { SevenBitAddress , TenBitAddress } ;
You can’t perform that action at this time.
0 commit comments