# Safety unsafe because this function must only be called once
()
| 9 | /// |
| 10 | /// unsafe because this function must only be called once |
| 11 | pub unsafe fn init() -> Self { |
| 12 | let mut port = unsafe { uart_16550::SerialPort::new(0x3F8) }; |
| 13 | port.init(); |
| 14 | Self { port } |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | impl fmt::Write for SerialPort { |
nothing calls this directly
no outgoing calls
no test coverage detected