Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kiffie committed Mar 2, 2025
1 parent a080df4 commit 901cde4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pic32-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ where
Tx<UART>: embedded_hal_0_2::serial::Write<u8>,
{
fn write_str(&mut self, s: &str) -> fmt::Result {
let _ = s.as_bytes().iter().map(|c| block!(self.write(*c))).last();
for c in s.as_bytes() {
let _ = block!(self.write(*c));
}
Ok(())
}
}

0 comments on commit 901cde4

Please sign in to comment.