aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/dispatchers.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2022-08-27 19:42:59 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2022-08-27 19:42:59 +0200
commitb1d499a74416ce03bde2d88b6944f64a5cd55f26 (patch)
treef1f19f825ccaddb6d15eca602114a64fb2e14873 /macros/src/codegen/dispatchers.rs
parent843fd42e205090fd89217571c019ee0ec1611692 (diff)
downloadrtic-b1d499a74416ce03bde2d88b6944f64a5cd55f26.tar.gz
rtic-b1d499a74416ce03bde2d88b6944f64a5cd55f26.tar.zst
rtic-b1d499a74416ce03bde2d88b6944f64a5cd55f26.zip
RA fixes
Diffstat (limited to '')
-rw-r--r--macros/src/codegen/dispatchers.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/src/codegen/dispatchers.rs b/macros/src/codegen/dispatchers.rs
index 6b241140..f5f36c49 100644
--- a/macros/src/codegen/dispatchers.rs
+++ b/macros/src/codegen/dispatchers.rs
@@ -18,13 +18,16 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
let prio_name = util::internal_task_ident(name, "PRIORITY");
items.push(quote!(
+ #[allow(non_camel_case_types)]
type #type_name = impl core::future::Future + 'static;
+ #[allow(non_upper_case_globals)]
static #exec_name:
rtic::RacyCell<rtic::export::executor::AsyncTaskExecutor<#type_name>> =
rtic::RacyCell::new(rtic::export::executor::AsyncTaskExecutor::new());
// The executors priority, this can be any value - we will overwrite it when we
// start a task
+ #[allow(non_upper_case_globals)]
static #prio_name: rtic::RacyCell<rtic::export::Priority> =
unsafe { rtic::RacyCell::new(rtic::export::Priority::new(0)) };
));