diff options
author | 2021-08-27 11:16:51 +0800 | |
---|---|---|
committer | 2021-08-27 11:16:51 +0800 | |
commit | 77427f962dec01b3aa49a5e4a2a77293794d8f2e (patch) | |
tree | a0844994c04e264343571f916f81e87f4bc4e4ad /macros/src/codegen/local_resources_struct.rs | |
parent | a4b6fb3404bbdbb853cc3fe6c7a110ddc3beb1a7 (diff) | |
parent | 22ec841ee14cc313b1725ff6ab6de1b5706d2824 (diff) | |
download | rtic-77427f962dec01b3aa49a5e4a2a77293794d8f2e.tar.gz rtic-77427f962dec01b3aa49a5e4a2a77293794d8f2e.tar.zst rtic-77427f962dec01b3aa49a5e4a2a77293794d8f2e.zip |
Merge branch 'rtic-rs:master' into master
Diffstat (limited to 'macros/src/codegen/local_resources_struct.rs')
-rw-r--r-- | macros/src/codegen/local_resources_struct.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/macros/src/codegen/local_resources_struct.rs b/macros/src/codegen/local_resources_struct.rs index 4bd9e2a4..cdbfccca 100644 --- a/macros/src/codegen/local_resources_struct.rs +++ b/macros/src/codegen/local_resources_struct.rs @@ -44,11 +44,9 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2, }; let mangled_name = if matches!(task_local, TaskLocal::External) { - util::mark_internal_ident(&util::static_local_resource_ident(name)) + util::static_local_resource_ident(name) } else { - util::mark_internal_ident(&util::declared_static_local_resource_ident( - name, &task_name, - )) + util::declared_static_local_resource_ident(name, &task_name) }; fields.push(quote!( @@ -86,9 +84,9 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2, let doc = format!("Local resources `{}` has access to", ctxt.ident(app)); let ident = util::local_resources_ident(ctxt, app); - let ident = util::mark_internal_ident(&ident); let item = quote!( #[allow(non_snake_case)] + #[allow(non_camel_case_types)] #[doc = #doc] pub struct #ident<#lt> { #(#fields,)* |