aboutsummaryrefslogtreecommitdiff
path: root/examples/nested.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-16 21:32:52 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-04-16 21:32:52 +0200
commitefca108103228f94e061ea06778555241c55b4f9 (patch)
tree724cfebd230ce75ab5b05e348683f3129d4bf763 /examples/nested.rs
parent7fdf16eab948ea04c1e56fdb5a704ed88780f5c6 (diff)
downloadrtic-efca108103228f94e061ea06778555241c55b4f9.tar.gz
rtic-efca108103228f94e061ea06778555241c55b4f9.tar.zst
rtic-efca108103228f94e061ea06778555241c55b4f9.zip
cargo fmt
Diffstat (limited to 'examples/nested.rs')
-rw-r--r--examples/nested.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/nested.rs b/examples/nested.rs
index d2309f3d..6af70879 100644
--- a/examples/nested.rs
+++ b/examples/nested.rs
@@ -10,8 +10,8 @@
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
-use stm32f103xx::Interrupt;
use rtfm::{app, Resource, Threshold};
+use stm32f103xx::Interrupt;
app! {
device: stm32f103xx,
@@ -60,10 +60,7 @@ fn idle() -> ! {
}
#[allow(non_snake_case)]
-fn exti0(
- t: &mut Threshold,
- EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources,
-) {
+fn exti0(t: &mut Threshold, EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources) {
// Because this task has a priority of 1 the preemption threshold `t` also
// starts at 1