From b138cc163148ba307cc9548e66efbf90a6482d25 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Wed, 3 Nov 2021 20:58:21 +0100 Subject: wip tests do pass, MutexStruct based --- macros/src/codegen/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros/src/codegen/util.rs') 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(&mut self, f: impl FnOnce(#ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R { + fn lock(&mut self, f: impl FnOnce(&mut #ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R { /// Priority ceiling const CEILING: u8 = #ceiling; -- cgit v1.2.3