Skip to content

Commit 64ad4c9

Browse files
sprhawkteskje
authored andcommitted
fix style issues
1 parent da2ded9 commit 64ad4c9

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/dma.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ macro_rules! on_channel {
531531
};
532532
}
533533

534-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
535534
on_channel!(dma1,
536535
serial::Rx<pac::USART1> => C5,
537536
serial::Tx<pac::USART1> => C4,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub use crate::pac::interrupt;
116116
pub mod adc;
117117
#[cfg(feature = "device-selected")]
118118
pub mod delay;
119-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
119+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
120120
pub mod dma;
121121
#[cfg(feature = "device-selected")]
122122
pub mod flash;

src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Prelude
22
3-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
3+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
44
pub use crate::dma::DmaExt as _stm32f3xx_hal_dma_DmaExt;
55
pub use crate::flash::FlashExt as _stm32f3xx_hal_flash_FlashExt;
66
pub use crate::gpio::GpioExt as _stm32f3xx_hal_gpio_GpioExt;

src/serial.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ use crate::gpio::gpiod;
3737
))]
3838
use crate::gpio::gpioe;
3939

40-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
40+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
4141
use crate::dma;
42-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
42+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
4343
use cortex_m::interrupt;
4444

4545
/// Interrupt event
@@ -363,7 +363,7 @@ macro_rules! hal {
363363

364364
impl blocking::serial::write::Default<u8> for Tx<$USARTX> {}
365365

366-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
366+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
367367
impl Rx<$USARTX> {
368368
/// Fill the buffer with received data using DMA.
369369
pub fn read_exact<B, C>(
@@ -384,7 +384,7 @@ macro_rules! hal {
384384
}
385385
}
386386

387-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
387+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
388388
impl Tx<$USARTX> {
389389
/// Transmit all data in the buffer using DMA.
390390
pub fn write_all<B, C>(
@@ -405,7 +405,7 @@ macro_rules! hal {
405405
}
406406
}
407407

408-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
408+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
409409
impl dma::Target for Rx<$USARTX> {
410410
fn enable_dma(&mut self) {
411411
// NOTE(unsafe) critical section prevents races
@@ -424,7 +424,7 @@ macro_rules! hal {
424424
}
425425
}
426426

427-
#[cfg(any(feature = "stm32f303", feature = "stm32f302"))]
427+
#[cfg(any(feature = "stm32f302", feature = "stm32f303"))]
428428
impl dma::Target for Tx<$USARTX> {
429429
fn enable_dma(&mut self) {
430430
// NOTE(unsafe) critical section prevents races

0 commit comments

Comments
 (0)