aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/nested.rs7
-rw-r--r--tests/cfail.rs5
2 files changed, 4 insertions, 8 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
diff --git a/tests/cfail.rs b/tests/cfail.rs
index 3636c72c..6572d657 100644
--- a/tests/cfail.rs
+++ b/tests/cfail.rs
@@ -10,9 +10,8 @@ fn cfail() {
let mut config = Config::default();
config.mode = Mode::CompileFail;
config.src_base = PathBuf::from(format!("tests/cfail"));
- config.target_rustcflags = Some(
- "-C panic=abort -L target/debug -L target/debug/deps ".to_string(),
- );
+ config.target_rustcflags =
+ Some("-C panic=abort -L target/debug -L target/debug/deps ".to_string());
compiletest::run_tests(&config);
}