mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-01 14:20:44 +00:00
Address latest Clippy lints (#1182)
This commit is contained in:
parent
b0bb0ab1ce
commit
e3147b0322
@ -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},
|
||||
|
@ -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,
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user