Skip to content

Commit f65e41e

Browse files
committed
cargo fmt
1 parent 10f6cc5 commit f65e41e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/ip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ extern crate panic_itm;
66
use cortex_m::asm;
77
use cortex_m_rt::{entry, exception};
88
use stm32_eth::{
9-
stm32::{interrupt, CorePeripherals, Peripherals, SYST},
109
hal::gpio::GpioExt,
1110
hal::rcc::RccExt,
11+
stm32::{interrupt, CorePeripherals, Peripherals, SYST},
1212
};
1313

1414
use core::cell::RefCell;

examples/pktgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ use cortex_m_rt::{entry, exception};
1010
use cortex_m::asm;
1111
use cortex_m::interrupt::Mutex;
1212
use stm32_eth::{
13-
stm32::{interrupt, CorePeripherals, Peripherals, SYST},
1413
hal::gpio::GpioExt,
1514
hal::rcc::RccExt,
15+
stm32::{interrupt, CorePeripherals, Peripherals, SYST},
1616
};
1717

1818
use core::fmt::Write;

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ pub use stm32f4xx_hal as hal;
1414
#[cfg(feature = "stm32f4xx-hal")]
1515
pub use stm32f4xx_hal::stm32;
1616

17+
use hal::{rcc::Clocks, time::U32Ext};
1718
use stm32::{Interrupt, ETHERNET_DMA, ETHERNET_MAC, NVIC};
18-
use hal::{
19-
rcc::Clocks,
20-
time::U32Ext,
21-
};
2219

2320
use cortex_m::asm;
2421

@@ -92,7 +89,7 @@ impl<'rx, 'tx> Eth<'rx, 'tx> {
9289
eth
9390
}
9491

95-
fn init(&mut self, clocks : &Clocks) -> &Self {
92+
fn init(&mut self, clocks: &Clocks) -> &Self {
9693
self.reset_dma_and_wait();
9794

9895
/* For HCLK 60-100 MHz */

0 commit comments

Comments
 (0)