From 52dc324aa7eafd855a22a95248feab70f1c1a19d Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Fri, 20 Aug 2021 09:21:02 +0200 Subject: [PATCH] More rustanalyzer lint fixes --- macros/src/codegen/module.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs index cac89c7d76..656ae6c8a4 100644 --- a/macros/src/codegen/module.rs +++ b/macros/src/codegen/module.rs @@ -376,6 +376,7 @@ pub fn codegen( /// /// This will use the time `Instant::new(0)` as baseline if called in `#[init]`, /// so if you use a non-resetable timer use `spawn_at` when in `#[init]` + #[allow(non_snake_case)] pub fn #internal_spawn_after_ident( duration: D #(,#args)* @@ -395,6 +396,7 @@ pub fn codegen( #(#cfgs)* /// Spawns the task at a fixed time instant + #[allow(non_snake_case)] pub fn #internal_spawn_at_ident( instant: rtic::time::Instant<#mono_type> #(,#args)*