Skip to content

Commit 2e16b79

Browse files
committed
Formatting
1 parent e686e6e commit 2e16b79

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/futures/digital.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use core::future::Future;
4242
/// Asynchronously wait for a pin to be high.
4343
pub 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

src/futures/i2c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
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};
2019
pub use crate::blocking::i2c::{AddressMode, SevenBitAddress, TenBitAddress};
20+
use core::{future::Future, mem::MaybeUninit};
2121

2222
/// Async read
2323
pub trait Read<A: AddressMode = SevenBitAddress> {

src/futures/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//!
33
//! This traits use `core::future::Future` and generic associated types.
44
5+
pub mod delay;
6+
pub mod digital;
57
pub mod i2c;
68
pub mod serial;
79
pub mod spi;
8-
pub mod delay;
9-
pub mod digital;

src/futures/serial.rs

+3-3
Original file line numberDiff line numberDiff 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

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@
412412

413413
pub mod blocking;
414414
pub mod fmt;
415-
pub mod nb;
416415
#[cfg(feature = "unstable-futures")]
417416
pub mod futures;
417+
pub mod nb;
418418

419419
mod private {
420420
use crate::blocking::i2c::{SevenBitAddress, TenBitAddress};

0 commit comments

Comments
 (0)