mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
374 B
374 B
Resource de-structure-ing
Destructuring task resources might help readability if a task takes multiple resources. Here are two examples on how to split up the resource struct:
{{#include ../../../../examples/destructure.rs}}
$ cargo run --target thumbv7m-none-eabi --example destructure
{{#include ../../../../ci/expected/destructure.run}}