diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 21:21:25 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 21:21:25 +0800 |
| commit | d7e663631240928a8fcd56dc173661c12aaec7b6 (patch) | |
| tree | be84615458240810e009e2f6fa289ec824c2d52f /kernel/src/io | |
| parent | f07ff5fad29c63fc4e332afcb08f99fff3df3e0c (diff) | |
rustfmtmain
Diffstat (limited to 'kernel/src/io')
| -rw-r--r-- | kernel/src/io/input.rs | 1 | ||||
| -rw-r--r-- | kernel/src/io/output/render.rs | 1 | ||||
| -rw-r--r-- | kernel/src/io/output/serial/uart_16550.rs | 27 |
3 files changed, 21 insertions, 8 deletions
diff --git a/kernel/src/io/input.rs b/kernel/src/io/input.rs index e69de29..8b13789 100644 --- a/kernel/src/io/input.rs +++ b/kernel/src/io/input.rs @@ -0,0 +1 @@ + diff --git a/kernel/src/io/output/render.rs b/kernel/src/io/output/render.rs index e69de29..8b13789 100644 --- a/kernel/src/io/output/render.rs +++ b/kernel/src/io/output/render.rs @@ -0,0 +1 @@ + diff --git a/kernel/src/io/output/serial/uart_16550.rs b/kernel/src/io/output/serial/uart_16550.rs index 2df3668..d94398a 100644 --- a/kernel/src/io/output/serial/uart_16550.rs +++ b/kernel/src/io/output/serial/uart_16550.rs @@ -41,13 +41,24 @@ impl Uart16550 { ) -> Result<Self, Uart16550TtyError<PortIoAddress>> { let mut addrs = SerialPortAddress::iter(); - Ok(Self { - coms: array::try_from_fn(|i| { - config[i] - .take() - .map(|c| unsafe { Uart16550Tty::new_port(addrs.next().unwrap().into(), c) }) - .transpose() - })?, - }) + Ok( + Self { + coms: array::try_from_fn( + |i| { + config[i] + .take() + .map( + |c| unsafe { + Uart16550Tty::new_port( + addrs.next().unwrap().into(), + c, + ) + }, + ) + .transpose() + }, + )?, + }, + ) } } |
