1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Use byte iterator

This commit is contained in:
Stephen Marz 2019-10-05 00:18:24 -04:00
parent 691c5b1653
commit 33d27d9efa

View File

@ -11,8 +11,8 @@ pub struct Uart {
impl Write for Uart {
fn write_str(&mut self, out: &str) -> Result<(), Error> {
for c in out.as_bytes() {
self.put(*c);
for c in out.bytes() {
self.put(c);
}
Ok(())
}