We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a11487 commit 76594f1Copy full SHA for 76594f1
1 file changed
uefi/src/proto/console/serial.rs
@@ -4,7 +4,7 @@
4
5
use crate::proto::unsafe_protocol;
6
use crate::{Error, Result, Status, StatusExt};
7
-use core::fmt::Write;
+use core::fmt;
8
use uefi_raw::protocol::console::serial::{
9
SerialIoProtocol, SerialIoProtocol_1_1, SerialIoProtocolRevision,
10
};
@@ -236,10 +236,8 @@ impl Serial {
236
}
237
238
239
-impl Write for Serial {
240
- fn write_str(&mut self, s: &str) -> core::fmt::Result {
241
- self.write(s.as_bytes())
242
- .map(|_| ())
243
- .map_err(|_| core::fmt::Error)
+impl fmt::Write for Serial {
+ fn write_str(&mut self, s: &str) -> fmt::Result {
+ self.write(s.as_bytes()).map(|_| ()).map_err(|_| fmt::Error)
244
245
0 commit comments