Skip to content

Commit 9628513

Browse files
committed
Fix formating
1 parent 15f9ca6 commit 9628513

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/timer.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
extern crate panic_semihosting;
88

9+
use core::cell::RefCell;
910
use core::fmt::Write;
10-
use core::cell::{RefCell};
1111

1212
use cortex_m::interrupt::{free, Mutex};
1313
use cortex_m_rt::entry;
@@ -52,7 +52,12 @@ fn main() -> ! {
5252
#[interrupt]
5353
fn TIM2() {
5454
free(|cs| {
55-
TIMER.borrow(cs).borrow_mut().as_mut().unwrap().clear_interrupt(Event::TimeOut)
55+
TIMER
56+
.borrow(cs)
57+
.borrow_mut()
58+
.as_mut()
59+
.unwrap()
60+
.clear_interrupt(Event::TimeOut)
5661
});
5762

5863
let mut hstdout = hio::hstdout().unwrap();

0 commit comments

Comments
 (0)