mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
Merge #516
516: More rustanalyzer lint fixes r=korken89 a=korken89 Found some more Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
This commit is contained in:
commit
22ec841ee1
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,7 @@ pub fn codegen(
|
||||||
///
|
///
|
||||||
/// This will use the time `Instant::new(0)` as baseline if called in `#[init]`,
|
/// 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]`
|
/// 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>(
|
pub fn #internal_spawn_after_ident<D>(
|
||||||
duration: D
|
duration: D
|
||||||
#(,#args)*
|
#(,#args)*
|
||||||
|
@ -387,6 +388,7 @@ pub fn codegen(
|
||||||
|
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
/// Spawns the task at a fixed time instant
|
/// Spawns the task at a fixed time instant
|
||||||
|
#[allow(non_snake_case)]
|
||||||
pub fn #internal_spawn_at_ident(
|
pub fn #internal_spawn_at_ident(
|
||||||
instant: rtic::time::Instant<#mono_type>
|
instant: rtic::time::Instant<#mono_type>
|
||||||
#(,#args)*
|
#(,#args)*
|
||||||
|
|
Loading…
Reference in a new issue