Skip to content

Commit

Permalink
fix: Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Jan 13, 2025
1 parent 6a54866 commit 5bac7b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion esp-hal/src/i2s/parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ where
}
}

impl<'d, BUF> I2sParallelTransfer<'d, BUF, Async>
impl<BUF> I2sParallelTransfer<'_, BUF, Async>
where
BUF: DmaTxBuffer,
{
Expand Down
2 changes: 1 addition & 1 deletion esp-hal/src/lcd_cam/lcd/i8080.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ impl<BUF: DmaTxBuffer, Dm: DriverMode> DerefMut for I8080Transfer<'_, BUF, Dm> {
}
}

impl<'d, BUF: DmaTxBuffer> I8080Transfer<'d, BUF, crate::Async> {
impl<BUF: DmaTxBuffer> I8080Transfer<'_, BUF, crate::Async> {
/// Waits for [Self::is_done] to return true.
pub async fn wait_for_done(&mut self) {
use core::{
Expand Down
10 changes: 2 additions & 8 deletions esp-hal/src/otg_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ pub mod asynch {
}
}

impl<'d> embassy_usb_driver::Bus for Bus<'d> {
impl embassy_usb_driver::Bus for Bus<'_> {
async fn poll(&mut self) -> Event {
self.inner.poll().await
}
Expand Down Expand Up @@ -336,12 +336,6 @@ pub mod asynch {

#[handler(priority = crate::interrupt::Priority::max())]
fn interrupt_handler() {
unsafe {
on_interrupt(
Driver::REGISTERS,
&STATE,
Usb::ENDPOINT_COUNT,
)
}
unsafe { on_interrupt(Driver::REGISTERS, &STATE, Usb::ENDPOINT_COUNT) }
}
}
2 changes: 1 addition & 1 deletion esp-storage/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fn main() -> Result<(), String> {
// Ensure that only a single chip is specified
esp_build::assert_unique_used_features!(
"esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4", "esp32s2", "esp32s3"
"esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32s2", "esp32s3"
);

if cfg!(feature = "esp32") {
Expand Down

0 comments on commit 5bac7b5

Please sign in to comment.