mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 15:04:32 +01:00
Modify macro tests, use mod instead of const
This commit is contained in:
parent
0c7a619432
commit
2881cc8f43
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ fn analyze() {
|
||||||
let (app, analysis) = rtic_syntax::parse2(
|
let (app, analysis) = rtic_syntax::parse2(
|
||||||
quote!(device = pac),
|
quote!(device = pac),
|
||||||
quote!(
|
quote!(
|
||||||
const APP: () = {
|
mod app {
|
||||||
#[task(priority = 1)]
|
#[task(priority = 1)]
|
||||||
fn a(_: a::Context) {}
|
fn a(_: a::Context) {}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ fn analyze() {
|
||||||
fn B();
|
fn B();
|
||||||
fn A();
|
fn A();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
),
|
),
|
||||||
settings,
|
settings,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue