mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 14:44:42 +00:00
Fix nightly lint errors (#2537)
This commit is contained in:
parent
014a04faad
commit
959631ee55
@ -1499,7 +1499,7 @@ pub struct Flex<'d, P = AnyPin> {
|
|||||||
|
|
||||||
impl<P> private::Sealed for Flex<'_, P> {}
|
impl<P> private::Sealed for Flex<'_, P> {}
|
||||||
|
|
||||||
impl<'d, P> Peripheral for Flex<'d, P> {
|
impl<P> Peripheral for Flex<'_, P> {
|
||||||
type P = Self;
|
type P = Self;
|
||||||
unsafe fn clone_unchecked(&self) -> Self::P {
|
unsafe fn clone_unchecked(&self) -> Self::P {
|
||||||
Self {
|
Self {
|
||||||
|
@ -816,7 +816,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d, T> embedded_hal_async::i2c::I2c for I2c<'d, Async, T>
|
impl<T> embedded_hal_async::i2c::I2c for I2c<'_, Async, T>
|
||||||
where
|
where
|
||||||
T: Instance,
|
T: Instance,
|
||||||
{
|
{
|
||||||
|
@ -1138,7 +1138,7 @@ pub trait TxChannelAsync: TxChannelInternal<Async> {
|
|||||||
/// Start transmitting the given pulse code sequence.
|
/// Start transmitting the given pulse code sequence.
|
||||||
/// The length of sequence cannot exceed the size of the allocated RMT
|
/// The length of sequence cannot exceed the size of the allocated RMT
|
||||||
/// RAM.
|
/// RAM.
|
||||||
async fn transmit<'a>(&mut self, data: &'a [u32]) -> Result<(), Error>
|
async fn transmit(&mut self, data: &[u32]) -> Result<(), Error>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
@ -1201,7 +1201,7 @@ pub trait RxChannelAsync: RxChannelInternal<Async> {
|
|||||||
/// Start receiving a pulse code sequence.
|
/// Start receiving a pulse code sequence.
|
||||||
/// The length of sequence cannot exceed the size of the allocated RMT
|
/// The length of sequence cannot exceed the size of the allocated RMT
|
||||||
/// RAM.
|
/// RAM.
|
||||||
async fn receive<'a, T: From<u32> + Copy>(&mut self, data: &'a mut [T]) -> Result<(), Error>
|
async fn receive<T: From<u32> + Copy>(&mut self, data: &mut [T]) -> Result<(), Error>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ pub struct BleConnector<'d> {
|
|||||||
_device: PeripheralRef<'d, crate::hal::peripherals::BT>,
|
_device: PeripheralRef<'d, crate::hal::peripherals::BT>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d> Drop for BleConnector<'d> {
|
impl Drop for BleConnector<'_> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
crate::ble::ble_deinit();
|
crate::ble::ble_deinit();
|
||||||
}
|
}
|
||||||
|
@ -501,7 +501,7 @@ impl EspNowManager<'_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d> Drop for EspNowManager<'d> {
|
impl Drop for EspNowManager<'_> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if unwrap!(
|
if unwrap!(
|
||||||
crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| {
|
crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| {
|
||||||
|
@ -233,7 +233,7 @@ pub struct EspWifiController<'d> {
|
|||||||
_inner: PhantomData<&'d ()>,
|
_inner: PhantomData<&'d ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d> EspWifiController<'d> {
|
impl EspWifiController<'_> {
|
||||||
/// Is the WiFi part of the radio running
|
/// Is the WiFi part of the radio running
|
||||||
pub fn wifi(&self) -> bool {
|
pub fn wifi(&self) -> bool {
|
||||||
crate::flags::WIFI.load(Ordering::Acquire) > 0
|
crate::flags::WIFI.load(Ordering::Acquire) > 0
|
||||||
@ -261,7 +261,7 @@ impl<'d> EspWifiController<'d> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d> Drop for EspWifiController<'d> {
|
impl Drop for EspWifiController<'_> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if crate::flags::ESP_WIFI_INITIALIZED.load(Ordering::Acquire) {
|
if crate::flags::ESP_WIFI_INITIALIZED.load(Ordering::Acquire) {
|
||||||
// safety: no other driver can be using this if this is callable
|
// safety: no other driver can be using this if this is callable
|
||||||
|
@ -2399,7 +2399,7 @@ pub struct WifiController<'d> {
|
|||||||
sniffer_taken: AtomicBool,
|
sniffer_taken: AtomicBool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'d> Drop for WifiController<'d> {
|
impl Drop for WifiController<'_> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
if unwrap!(
|
if unwrap!(
|
||||||
crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| {
|
crate::flags::WIFI.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |x| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user