From 7c504668dab4334baefefefd952044a28bc1f4c8 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Sat, 13 Jun 2020 01:21:22 +0200 Subject: wip3, examples lock3 and lock4 now express intended use, relation to Exclusive still not resolved --- macros/src/codegen/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros/src/codegen') diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index d8d05453..0d50b0ac 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -72,7 +72,7 @@ pub fn impl_mutex( impl<'a> rtic::Mutex for #path<'a> { type T = #ty; #[inline(always)] - fn lock(&mut self, f: impl FnOnce(&mut #ty) -> R) -> R { + fn lock(&self, f: impl FnOnce(&mut #ty) -> R) -> R { /// Priority ceiling const CEILING: u8 = #ceiling; -- cgit v1.2.3