summaryrefslogtreecommitdiff
path: root/embassy-hal-common
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-02-16 03:54:39 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-03-11 00:38:07 +0100
commit9bad9365dcf31dd558aca05f60d244beb9e5e697 (patch)
tree3d54927ce409975c58dff4409b8a140a4b68abd1 /embassy-hal-common
parent828cdb295183b8733ec636a80e0d35e6f8e41827 (diff)
downloadembassy-9bad9365dcf31dd558aca05f60d244beb9e5e697.zip
Update rust nightly, embedded-hal 1.0, embedded-hal-async.
Diffstat (limited to 'embassy-hal-common')
-rw-r--r--embassy-hal-common/src/peripheral.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-hal-common/src/peripheral.rs b/embassy-hal-common/src/peripheral.rs
index dcf9d3a2..89420a42 100644
--- a/embassy-hal-common/src/peripheral.rs
+++ b/embassy-hal-common/src/peripheral.rs
@@ -97,7 +97,7 @@ impl<'a, S: PeripheralState> PeripheralMutex<'a, S> {
// Interrupts' priorities can only be changed with raw embassy `Interrupts`,
// which can't safely store a `PeripheralMutex` across invocations.
// - We can't have preempted a with() call because the irq is disabled during it.
- let state = unsafe { &mut *(p as *mut S) };
+ let state = &mut *(p as *mut S);
state.on_interrupt();
});
irq.set_handler_context(state_ptr as *mut ());