diff options
Diffstat (limited to 'macros/src/codegen/dispatchers.rs')
-rw-r--r-- | macros/src/codegen/dispatchers.rs | 3 |
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)) }; )); |