Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Jan 10, 2024
1 parent 7e7b4ea commit 1d91b0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions rp2040-hal/src/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,7 @@ impl<T: AnyPin> embedded_hal::digital::v2::OutputPin for InOutPin<T> {
}

mod eh1 {
use embedded_hal_1::digital::{
ErrorType, InputPin, OutputPin, StatefulOutputPin,
};
use embedded_hal_1::digital::{ErrorType, InputPin, OutputPin, StatefulOutputPin};

use super::{Error, FunctionSio, Pin, PinId, PullType, SioConfig, SioInput, SioOutput};

Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/src/pwm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
use core::convert::Infallible;
use core::marker::PhantomData;

use embedded_hal_1::pwm::{ErrorType, SetDutyCycle};
use embedded_dma::Word;
use embedded_hal::PwmPin;
use embedded_hal_1::pwm::{ErrorType, SetDutyCycle};

use crate::{
atomic_register_access::{write_bitmask_clear, write_bitmask_set},
Expand Down
4 changes: 2 additions & 2 deletions rp2040-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
use core::{convert::Infallible, marker::PhantomData, ops::Deref};

use embedded_hal_1::spi as eh1;
use embedded_hal_nb::spi as eh1nb;
use embedded_hal::{
blocking::spi,
spi::{FullDuplex, Phase, Polarity},
};
use embedded_hal_1::spi as eh1;
use embedded_hal_nb::spi as eh1nb;
use fugit::{HertzU32, RateExtU32};

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/src/uart/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::dma::{EndlessWriteTarget, WriteTarget};
use crate::pac::uart0::RegisterBlock;
use core::fmt;
use core::{convert::Infallible, marker::PhantomData};
use embedded_hal_nb::serial as eh1nb;
use embedded_hal::serial::Write;
use embedded_hal_nb::serial as eh1nb;
use nb::Error::*;

/// Set tx FIFO watermark
Expand Down

0 comments on commit 1d91b0a

Please sign in to comment.