Address latest Clippy lints (#1182)

This commit is contained in:
Björn Quentin 2024-02-19 11:07:36 +01:00 committed by GitHub
parent b0bb0ab1ce
commit e3147b0322
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 18 deletions

View File

@ -48,7 +48,6 @@
#[allow(unused)]
use core::ffi::{c_int, c_uchar, c_void};
use core::{
convert::From,
fmt,
mem::MaybeUninit,
ops::{Deref, DerefMut},

View File

@ -757,16 +757,14 @@ where
}
pub mod dma {
use core::{marker::PhantomData, mem};
use core::mem;
use embedded_dma::{ReadBuffer, WriteBuffer};
use fugit::HertzU32;
use super::*;
#[cfg(spi3)]
use crate::dma::Spi3Peripheral;
use crate::{
clock::Clocks,
dma::{
Channel,
ChannelTypes,
@ -778,7 +776,6 @@ pub mod dma {
SpiPeripheral,
TxPrivate,
},
peripheral::PeripheralRef,
FlashSafeDma,
};

View File

@ -144,8 +144,7 @@ pub mod dma {
use super::*;
#[cfg(spi3)]
use crate::dma::Spi3Peripheral;
use crate::{
dma::{
use crate::dma::{
Channel,
ChannelTypes,
DmaError,
@ -155,8 +154,6 @@ pub mod dma {
Spi2Peripheral,
SpiPeripheral,
TxPrivate,
},
peripheral::PeripheralRef,
};
pub trait WithDmaSpi2<'d, C>