aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/module.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-08-19 08:21:18 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-08-19 09:49:00 +0200
commit13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0 (patch)
tree9b0408bc45875a4a02da24a391057f812b078405 /macros/src/codegen/module.rs
parentbc3eb5c54784c32ccfff404dba58a27d5a47f04e (diff)
downloadrtic-13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0.tar.gz
rtic-13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0.tar.zst
rtic-13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0.zip
Fixed some lints from Rust Analyzer with experimental proc-macros
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r--macros/src/codegen/module.rs5
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,