diff options
Diffstat (limited to 'macros/src/codegen/shared_resources_struct.rs')
-rw-r--r-- | macros/src/codegen/shared_resources_struct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |