From 20602bd77c59bd752fabb05713bbbeab1c0ad7cc Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Wed, 3 Nov 2021 16:10:10 +0100 Subject: wip tests do not pass --- macros/src/codegen/shared_resources_struct.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/src/codegen/shared_resources_struct.rs') diff --git a/macros/src/codegen/shared_resources_struct.rs b/macros/src/codegen/shared_resources_struct.rs index 21a1f991..6ca9710b 100644 --- a/macros/src/codegen/shared_resources_struct.rs +++ b/macros/src/codegen/shared_resources_struct.rs @@ -168,14 +168,14 @@ pub fn codegen( let (lock_all, get_prio) = if let Some(name) = field_get_prio { ( - util::impl_mutex( + util::impl_mutex_struct( extra, &vec![], // TODO: what cfg should go here? quote!(#ident), quote!(#ident_mut<#lt>), max_ceiling, quote!(self.priority()), - quote!(|| { &mut #ident_mut::new() }), + quote!(|| { #ident_mut::new() }), ), quote!( // Used by the lock-all API -- cgit v1.2.3