Skip to content

Commit 41afe21

Browse files
committed
Fix formatting
1 parent acaf37b commit 41afe21

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/serial/usart.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,12 @@ where
184184
Serial<USART>: hal::serial::Write<u8>,
185185
{
186186
fn write_str(&mut self, s: &str) -> fmt::Result {
187-
let _ = s.as_bytes().iter().map(|c| block!(self.write(*c))).next_back();
188-
Ok(())
187+
let _ = s
188+
.as_bytes()
189+
.iter()
190+
.map(|c| block!(self.write(*c)))
191+
.next_back();
192+
Ok(())ß
189193
}
190194
}
191195

@@ -194,7 +198,11 @@ where
194198
Tx<USART>: hal::serial::Write<u8>,
195199
{
196200
fn write_str(&mut self, s: &str) -> fmt::Result {
197-
let _ = s.as_bytes().iter().map(|c| block!(self.write(*c))).next_back();
201+
let _ = s
202+
.as_bytes()
203+
.iter()
204+
.map(|c| block!(self.write(*c)))
205+
.next_back();
198206
Ok(())
199207
}
200208
}

0 commit comments

Comments
 (0)