Fix clippy lints

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
This commit is contained in:
Daniel Egger 2020-04-26 15:53:48 +02:00
parent f2986badc1
commit 91bb5d8418
3 changed files with 4 additions and 5 deletions

View File

@ -103,12 +103,14 @@ impl<MODE> OutputPin for Pin<Output<MODE>> {
#[inline(always)]
fn set_high(&mut self) -> Result<(), Self::Error> {
Ok(unsafe { (*self.port).set_high(self.i) })
unsafe { (*self.port).set_high(self.i) };
Ok(())
}
#[inline(always)]
fn set_low(&mut self) -> Result<(), Self::Error> {
Ok(unsafe { (*self.port).set_low(self.i) })
unsafe { (*self.port).set_low(self.i) }
Ok(())
}
}

View File

@ -40,8 +40,6 @@
use core::marker::PhantomData;
use core::{ops::Deref, ptr};
use nb;
pub use embedded_hal::spi::{Mode, Phase, Polarity};
// TODO Put this inside the macro

View File

@ -35,7 +35,6 @@ use crate::rcc::{Clocks, Rcc};
use crate::time::Hertz;
use embedded_hal::timer::{CountDown, Periodic};
use nb;
use void::Void;
/// Hardware timers