Remove implementation of provided method (#921)

This commit is contained in:
Dániel Buga 2023-11-10 13:48:14 +01:00 committed by GitHub
parent bde317ee69
commit 6b0a16fc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1018,14 +1018,6 @@ where
self.write_bytes(s.as_bytes())?;
Ok(())
}
#[inline]
fn write_char(&mut self, ch: char) -> Result<(), Self::Error> {
let mut buffer = [0u8; 4];
self.write_bytes(ch.encode_utf8(&mut buffer).as_bytes())?;
Ok(())
}
}
impl<T> core::fmt::Write for Uart<'_, T>