aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2021-11-03 20:58:21 +0100
committerGravatar Per Lindgren <per.lindgren@ltu.se> 2021-11-03 20:58:21 +0100
commitb138cc163148ba307cc9548e66efbf90a6482d25 (patch)
tree2d86b3682e73cee096012aca40cd473e180f10aa /macros/src/codegen/util.rs
parent20602bd77c59bd752fabb05713bbbeab1c0ad7cc (diff)
downloadrtic-b138cc163148ba307cc9548e66efbf90a6482d25.tar.gz
rtic-b138cc163148ba307cc9548e66efbf90a6482d25.tar.zst
rtic-b138cc163148ba307cc9548e66efbf90a6482d25.zip
wip tests do pass, MutexStruct based
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs
index 671f839a..7a4c58ce 100644
--- a/macros/src/codegen/util.rs
+++ b/macros/src/codegen/util.rs
@@ -71,7 +71,7 @@ pub fn impl_mutex_struct(
type T = #ty;
#[inline(always)]
- fn lock<RTIC_INTERNAL_R>(&mut self, f: impl FnOnce(#ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R {
+ fn lock<RTIC_INTERNAL_R>(&mut self, f: impl FnOnce(&mut #ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R {
/// Priority ceiling
const CEILING: u8 = #ceiling;