aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/timer_queue.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/timer_queue.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/timer_queue.rs')
-rw-r--r--macros/src/codegen/timer_queue.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/src/codegen/timer_queue.rs b/macros/src/codegen/timer_queue.rs
index bf896ee6..e805292a 100644
--- a/macros/src/codegen/timer_queue.rs
+++ b/macros/src/codegen/timer_queue.rs
@@ -15,6 +15,7 @@ pub fn codegen(app: &App, analysis: &Analysis, _extra: &Extra) -> Vec<TokenStrea
// #[doc = #doc]
#[doc(hidden)]
#[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
static #tq_marker: rtic::RacyCell<u32> = rtic::RacyCell::new(0);
));
@@ -74,6 +75,8 @@ pub fn codegen(app: &App, analysis: &Analysis, _extra: &Extra) -> Vec<TokenStrea
// let doc = format!(" RTIC internal: {}:{}", file!(), line!());
items.push(quote!(
#[doc(hidden)]
+ #[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
static #tq: rtic::RacyCell<#tq_ty> =
rtic::RacyCell::new(rtic::export::TimerQueue(rtic::export::SortedLinkedList::new_u16()));
));
@@ -85,6 +88,8 @@ pub fn codegen(app: &App, analysis: &Analysis, _extra: &Extra) -> Vec<TokenStrea
items.push(quote!(
#[doc(hidden)]
+ #[allow(non_camel_case_types)]
+ #[allow(non_upper_case_globals)]
static #mono: rtic::RacyCell<Option<#mono_type>> = rtic::RacyCell::new(None);
));
}