Skip to content

Commit

Permalink
Make nightly clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TethysSvensson committed Mar 5, 2024
1 parent b51fa84 commit 0adae5c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions hal/src/gpio/dynpin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@

use atsamd_hal_macros::{hal_cfg, hal_macro_helper};

use core::convert::TryFrom;

use paste::paste;

use crate::ehal::digital::v2::OutputPin;
Expand Down
1 change: 0 additions & 1 deletion hal/src/sercom/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ let (chan0, _, spi, _) = dma_transfer.wait();

use atsamd_hal_macros::{hal_cfg, hal_docs, hal_macro_helper, hal_module};

use core::convert::TryFrom;
use core::marker::PhantomData;

use bitflags::bitflags;
Expand Down
2 changes: 0 additions & 2 deletions hal/src/sercom/spi/reg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use atsamd_hal_macros::{hal_cfg, hal_macro_helper};

use core::convert::TryInto;

use embedded_hal::spi;

#[hal_cfg(any("sercom0-d11", "sercom0-d21"))]
Expand Down
2 changes: 1 addition & 1 deletion hal/src/sercom/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ pub use config::*;
pub mod impl_ehal;

use crate::{sercom::*, typelevel::Sealed};
use core::{convert::TryInto, marker::PhantomData};
use core::marker::PhantomData;
use num_traits::AsPrimitive;

/// Size of the SERCOM's `DATA` register
Expand Down
1 change: 0 additions & 1 deletion hal/src/sercom/uart/flags.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Flag definitions
use bitflags::bitflags;
use core::convert::TryFrom;

//=============================================================================
// Interrupt flags
Expand Down

0 comments on commit 0adae5c

Please sign in to comment.