mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-28 04:41:02 +00:00
Clippy
This commit is contained in:
parent
fc1b0650d9
commit
92d846ec56
@ -524,7 +524,10 @@ impl<'d> PcntDriver<'d> {
|
||||
let callback: alloc::boxed::Box<dyn FnMut(u32) + 'd> = alloc::boxed::Box::new(callback);
|
||||
|
||||
unsafe {
|
||||
ISR_HANDLERS[self.unit as usize] = Some(core::mem::transmute(callback));
|
||||
ISR_HANDLERS[self.unit as usize] = Some(core::mem::transmute::<
|
||||
alloc::boxed::Box<dyn core::ops::FnMut(u32)>,
|
||||
IsrHandler,
|
||||
>(callback));
|
||||
}
|
||||
esp!(unsafe {
|
||||
pcnt_isr_handler_add(
|
||||
|
Loading…
x
Reference in New Issue
Block a user