mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-24 02:16:19 +04:00
Use byte iterator
This commit is contained in:
parent
691c5b1653
commit
33d27d9efa
@ -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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user