mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 06:45:36 +01:00
Start CI, disable docs building
This commit is contained in:
parent
3cfb95a5db
commit
cb588c9128
14 changed files with 299 additions and 313 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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)`"),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) -> !`"),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)`"),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue