aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-08-20 07:27:07 +0000
committerGravatar GitHub <noreply@github.com> 2021-08-20 07:27:07 +0000
commit22ec841ee14cc313b1725ff6ab6de1b5706d2824 (patch)
treef98e327380c84fd6679f5c822771b40ecc89ce23 /macros/src
parentf77b81e0eec2fa9053911d84f02b9a78b84486ec (diff)
parent52dc324aa7eafd855a22a95248feab70f1c1a19d (diff)
downloadrtic-22ec841ee14cc313b1725ff6ab6de1b5706d2824.tar.gz
rtic-22ec841ee14cc313b1725ff6ab6de1b5706d2824.tar.zst
rtic-22ec841ee14cc313b1725ff6ab6de1b5706d2824.zip
Merge #516
516: More rustanalyzer lint fixes r=korken89 a=korken89 Found some more Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/codegen/module.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index ddaf1e52..4db2c0c2 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -368,6 +368,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<D>(
duration: D
#(,#args)*
@@ -387,6 +388,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)*