Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Nov 11, 2024
1 parent c68d24c commit e3588cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp-hal/src/rmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ where
.enumerate()
{
unsafe {
ptr.add(idx).write_volatile((*entry).into());
ptr.add(idx).write_volatile(*entry);
}
}

Expand Down Expand Up @@ -1062,7 +1062,7 @@ where
as *mut u32;
let len = self.data.len();
for (idx, entry) in self.data.iter_mut().take(len).enumerate() {
*entry = unsafe { ptr.add(idx).read_volatile().into() };
*entry = unsafe { ptr.add(idx).read_volatile() };
}

Ok(self.channel)
Expand Down Expand Up @@ -1419,7 +1419,7 @@ where
.enumerate()
{
unsafe {
ptr.add(idx).write_volatile((*entry).into());
ptr.add(idx).write_volatile(*entry);
}
}

Expand Down

0 comments on commit e3588cd

Please sign in to comment.