aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/software_tasks.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/software_tasks.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/software_tasks.rs')
-rw-r--r--macros/src/codegen/software_tasks.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/src/codegen/software_tasks.rs b/macros/src/codegen/software_tasks.rs
index 0b073359..17399b50 100644
--- a/macros/src/codegen/software_tasks.rs
+++ b/macros/src/codegen/software_tasks.rs
@@ -49,6 +49,8 @@ pub fn codegen(
mod_app.push(quote!(
// /// Queue version of a free-list that keeps track of empty slots in
// /// the following buffers
+ #[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
#[doc(hidden)]
static #fq: rtic::RacyCell<#fq_ty> = rtic::RacyCell::new(#fq_expr);
));
@@ -69,6 +71,8 @@ pub fn codegen(
#uninit
// /// Buffer that holds the instants associated to the inputs of a task
// #[doc = #doc]
+ #[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
#[doc(hidden)]
static #instants:
rtic::RacyCell<[core::mem::MaybeUninit<rtic::time::Instant<#mono_type>>; #cap_lit]> =
@@ -82,6 +86,8 @@ pub fn codegen(
mod_app.push(quote!(
#uninit
// /// Buffer that holds the inputs of a task
+ #[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
#[doc(hidden)]
static #inputs_ident: rtic::RacyCell<[core::mem::MaybeUninit<#input_ty>; #cap_lit]> =
rtic::RacyCell::new([#(#elems,)*]);