diff options
author | 2021-08-19 07:57:20 +0000 | |
---|---|---|
committer | 2021-08-19 07:57:20 +0000 | |
commit | 2f180c0e3f81b60494475184397463291fcd06ea (patch) | |
tree | 9b0408bc45875a4a02da24a391057f812b078405 /macros/src/codegen/module.rs | |
parent | 6b9966678cd4d9e1242779b6a62643f44857d45f (diff) | |
parent | 13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0 (diff) | |
download | rtic-2f180c0e3f81b60494475184397463291fcd06ea.tar.gz rtic-2f180c0e3f81b60494475184397463291fcd06ea.tar.zst rtic-2f180c0e3f81b60494475184397463291fcd06ea.zip |
Merge #513
513: Fixed some lints from Rust Analyzer with experimental proc-macros r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r-- | macros/src/codegen/module.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs index d3afb27b..cac89c7d 100644 --- a/macros/src/codegen/module.rs +++ b/macros/src/codegen/module.rs @@ -131,6 +131,7 @@ pub fn codegen( items.push(quote!( /// Monotonics used by the system #[allow(non_snake_case)] + #[allow(non_camel_case_types)] pub struct #internal_monotonics_ident( #(pub #monotonic_types),* ); @@ -178,6 +179,8 @@ pub fn codegen( items.push(quote!( #(#cfgs)* /// Execution context + #[allow(non_snake_case)] + #[allow(non_camel_case_types)] pub struct #internal_context_name<#lt> { #(#fields,)* } @@ -318,6 +321,8 @@ pub fn codegen( items.push(quote!( #(#cfgs)* + #[allow(non_snake_case)] + #[allow(non_camel_case_types)] pub struct #internal_spawn_handle_ident { #[doc(hidden)] marker: u32, |