diff options
| author | Karun <[email protected]> | 2024-03-07 15:23:45 -0500 |
|---|---|---|
| committer | Karun <[email protected]> | 2024-03-07 15:23:45 -0500 |
| commit | fda6e3fb8ccae9b92d619fefa01d334177edb12a (patch) | |
| tree | fe2677ffc792b74f7b538f5cc89d619509766f67 | |
| parent | 54751b7a5093b7960e42cee1bc9a850f9c4b7a8f (diff) | |
Resolve rustfmt issue and unused import errors
| -rw-r--r-- | embassy-stm32/build.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/ospi/mod.rs | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 3a30ba2fd..6217a3309 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs | |||
| @@ -1010,7 +1010,6 @@ fn main() { | |||
| 1010 | (("octospi", "NCLK"), quote!(crate::ospi::NckPin)), | 1010 | (("octospi", "NCLK"), quote!(crate::ospi::NckPin)), |
| 1011 | ].into(); | 1011 | ].into(); |
| 1012 | 1012 | ||
| 1013 | |||
| 1014 | for p in METADATA.peripherals { | 1013 | for p in METADATA.peripherals { |
| 1015 | if let Some(regs) = &p.registers { | 1014 | if let Some(regs) = &p.registers { |
| 1016 | for pin in p.pins { | 1015 | for pin in p.pins { |
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index 3d458ba79..794bdd127 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs | |||
| @@ -9,12 +9,12 @@ use embassy_embedded_hal::{GetConfig, SetConfig}; | |||
| 9 | use embassy_hal_internal::{into_ref, PeripheralRef}; | 9 | use embassy_hal_internal::{into_ref, PeripheralRef}; |
| 10 | use embedded_hal_1::spi::ErrorKind; | 10 | use embedded_hal_1::spi::ErrorKind; |
| 11 | pub use enums::*; | 11 | pub use enums::*; |
| 12 | use stm32_metapac::octospi::vals::{MemType, PhaseMode, SizeInBits}; | 12 | use stm32_metapac::octospi::vals::{PhaseMode, SizeInBits}; |
| 13 | 13 | ||
| 14 | use crate::dma::{slice_ptr_parts, word, Transfer}; | 14 | use crate::dma::{word, Transfer}; |
| 15 | use crate::gpio::sealed::{AFType, Pin as _}; | 15 | use crate::gpio::sealed::{AFType, Pin as _}; |
| 16 | use crate::gpio::{AnyPin, Pull}; | 16 | use crate::gpio::{AnyPin, Pull}; |
| 17 | use crate::pac::octospi::{regs, vals, Octospi as Regs}; | 17 | use crate::pac::octospi::{vals, Octospi as Regs}; |
| 18 | use crate::rcc::RccPeripheral; | 18 | use crate::rcc::RccPeripheral; |
| 19 | use crate::{peripherals, Peripheral}; | 19 | use crate::{peripherals, Peripheral}; |
| 20 | 20 | ||
