mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
Destructure reverted (priority leakage fixed)
This commit is contained in:
parent
2b70b1faf3
commit
9ac4c4a2d0
1 changed files with 2 additions and 4 deletions
|
@ -46,12 +46,10 @@ mod app {
|
||||||
}
|
}
|
||||||
|
|
||||||
// De-structure-ing syntax
|
// De-structure-ing syntax
|
||||||
|
|
||||||
// TODO: hide priority field (or re-use priority from first resource)
|
|
||||||
#[task(shared = [&a, &b, &c])]
|
#[task(shared = [&a, &b, &c])]
|
||||||
fn bar(cx: bar::Context) {
|
fn bar(cx: bar::Context) {
|
||||||
let bar::SharedResources { a, b, c, priority } = cx.shared;
|
let bar::SharedResources { a, b, c } = cx.shared;
|
||||||
|
|
||||||
hprintln!("bar: a = {}, b = {}, c = {}, p = {:?}", a, b, c, priority).unwrap();
|
hprintln!("bar: a = {}, b = {}, c = {}", a, b, c).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue