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