Skip to content

Commit f656193

Browse files
committed
Cargo fmt
1 parent e7c4bf1 commit f656193

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/led.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ macro_rules! led_impl {
5757
($($LEDTYPE:ident),+) => {
5858
$(
5959
impl Led for $LEDTYPE {
60-
fn off(&mut self) {
61-
self.set_low().unwrap();
62-
}
60+
fn off(&mut self) {
61+
self.set_low().unwrap();
62+
}
6363

64-
fn on(&mut self) {
65-
self.set_high().unwrap();
66-
}
64+
fn on(&mut self) {
65+
self.set_high().unwrap();
66+
}
6767

68-
fn toggle(&mut self) {
69-
ToggleableOutputPin::toggle(self).unwrap();
68+
fn toggle(&mut self) {
69+
ToggleableOutputPin::toggle(self).unwrap();
70+
}
7071
}
71-
}
7272
)+
7373
}
7474
}
@@ -77,4 +77,4 @@ macro_rules! led_impl {
7777
#[cfg(any(feature = "board-hifive1", feature = "board-hifive1-revb"))]
7878
led_impl!(RED, GREEN);
7979

80-
led_impl!(BLUE);
80+
led_impl!(BLUE);

0 commit comments

Comments
 (0)