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)] #[allow(unused)]
use core::ffi::{c_int, c_uchar, c_void}; use core::ffi::{c_int, c_uchar, c_void};
use core::{ use core::{
convert::From,
fmt, fmt,
mem::MaybeUninit, mem::MaybeUninit,
ops::{Deref, DerefMut}, ops::{Deref, DerefMut},

View File

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

View File

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