diff options
author | 2023-01-08 21:33:44 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:29 +0100 | |
commit | 95e494968053a17ac05a0c1cec9d8b2c7d450296 (patch) | |
tree | a6655592245aa0dc85c75d8a3bd37082a1766dc8 /macros/src | |
parent | c40c89bb4edc22c4a60d8677c660a9ab7eb47e92 (diff) | |
download | rtic-95e494968053a17ac05a0c1cec9d8b2c7d450296.tar.gz rtic-95e494968053a17ac05a0c1cec9d8b2c7d450296.tar.zst rtic-95e494968053a17ac05a0c1cec9d8b2c7d450296.zip |
Start CI, disable docs building
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/codegen/async_dispatchers.rs | 4 | ||||
-rw-r--r-- | macros/src/syntax/parse/hardware_task.rs | 8 | ||||
-rw-r--r-- | macros/src/syntax/parse/idle.rs | 4 | ||||
-rw-r--r-- | macros/src/syntax/parse/software_task.rs | 8 |
4 files changed, 6 insertions, 18 deletions
diff --git a/macros/src/codegen/async_dispatchers.rs b/macros/src/codegen/async_dispatchers.rs index be02ad09..341f76ff 100644 --- a/macros/src/codegen/async_dispatchers.rs +++ b/macros/src/codegen/async_dispatchers.rs @@ -84,9 +84,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> TokenStream2 { } if level > 0 { - let doc = format!( - "Interrupt handler to dispatch async tasks at priority {level}" - ); + let doc = format!("Interrupt handler to dispatch async tasks at priority {level}"); let attribute = &interrupts.get(&level).expect("UNREACHABLE").1.attrs; items.push(quote!( #[allow(non_snake_case)] diff --git a/macros/src/syntax/parse/hardware_task.rs b/macros/src/syntax/parse/hardware_task.rs index 6207e564..c13426f4 100644 --- a/macros/src/syntax/parse/hardware_task.rs +++ b/macros/src/syntax/parse/hardware_task.rs @@ -39,9 +39,7 @@ impl HardwareTask { Err(parse::Error::new( span, - format!( - "this task handler must have type signature `fn({name}::Context)`" - ), + format!("this task handler must have type signature `fn({name}::Context)`"), )) } } @@ -82,9 +80,7 @@ impl HardwareTask { Err(parse::Error::new( span, - format!( - "this task handler must have type signature `fn({name}::Context)`" - ), + format!("this task handler must have type signature `fn({name}::Context)`"), )) } } diff --git a/macros/src/syntax/parse/idle.rs b/macros/src/syntax/parse/idle.rs index aa2ef5e9..f049cca8 100644 --- a/macros/src/syntax/parse/idle.rs +++ b/macros/src/syntax/parse/idle.rs @@ -34,9 +34,7 @@ impl Idle { Err(parse::Error::new( item.sig.ident.span(), - format!( - "this `#[idle]` function must have signature `fn({name}::Context) -> !`" - ), + format!("this `#[idle]` function must have signature `fn({name}::Context) -> !`"), )) } } diff --git a/macros/src/syntax/parse/software_task.rs b/macros/src/syntax/parse/software_task.rs index 319620a4..fb9b37c4 100644 --- a/macros/src/syntax/parse/software_task.rs +++ b/macros/src/syntax/parse/software_task.rs @@ -33,9 +33,7 @@ impl SoftwareTask { Err(parse::Error::new( span, - format!( - "this task handler must have type signature `async fn({name}::Context)`" - ), + format!("this task handler must have type signature `async fn({name}::Context)`"), )) } } @@ -70,9 +68,7 @@ impl SoftwareTask { Err(parse::Error::new( span, - format!( - "this task handler must have type signature `async fn({name}::Context)`" - ), + format!("this task handler must have type signature `async fn({name}::Context)`"), )) } } |