Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Apr 16, 2018
1 parent 7fdf16e commit efca108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions examples/nested.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions tests/cfail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit efca108

Please sign in to comment.