Skip to content

Commit 67b0373

Browse files
committed
Remove unneeded imports
1 parent 3760e18 commit 67b0373

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/serial.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use crate::{
88
time::Bps,
99
};
1010
use core::{convert::Infallible, marker::PhantomData, ptr};
11-
use cortex_m::interrupt;
12-
use nb;
1311

1412
#[cfg(any(
1513
feature = "stm32f302",
@@ -41,6 +39,8 @@ use crate::gpio::gpioe;
4139

4240
#[cfg(feature = "stm32f303")]
4341
use crate::dma;
42+
#[cfg(feature = "stm32f303")]
43+
use cortex_m::interrupt;
4444

4545
/// Interrupt event
4646
pub enum Event {

src/spi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use core::ptr;
55
use crate::hal::spi::FullDuplex;
66
pub use crate::hal::spi::{Mode, Phase, Polarity};
77
use crate::pac::{SPI1, SPI2, SPI3};
8-
use nb;
98

109
use crate::gpio::gpioa::{PA5, PA6, PA7};
1110
#[cfg(any(

src/timer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ use crate::pac::{TIM15, TIM16, TIM17, TIM2, TIM6};
5656
use crate::pac::{TIM3, TIM7};
5757

5858
use cast::{u16, u32};
59-
use nb;
6059
use void::Void;
6160

6261
use crate::rcc::{Clocks, APB1, APB2};

0 commit comments

Comments
 (0)