diff options
| author | Christian Cunningham <c@localhost> | 2022-08-23 20:37:23 -0700 |
|---|---|---|
| committer | Christian Cunningham <c@localhost> | 2022-08-23 20:37:23 -0700 |
| commit | 526abb3e5b3175008cb60f78b645d5e2c0f5072a (patch) | |
| tree | a125d6358eb847585f7b1a3625eb166c8c96a712 /src/qemu | |
| parent | a1c8269dc367a6b37986417aa650ec65ac77aae3 (diff) | |
* cargo fmt
Diffstat (limited to 'src/qemu')
| -rw-r--r-- | src/qemu/mod.rs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/qemu/mod.rs b/src/qemu/mod.rs index 4c1ab37..2a0e990 100644 --- a/src/qemu/mod.rs +++ b/src/qemu/mod.rs @@ -8,24 +8,24 @@ #[derive(Debug, Clone, Copy, PartialEq, Eq)] #[repr(u32)] pub enum QemuExitCode { - /// # Success - /// - /// Exit QEMU successfully - Success = 0x10, - /// # Failure - /// - /// Exit QEMU with error - Failed = 0x11, + /// # Success + /// + /// Exit QEMU successfully + Success = 0x10, + /// # Failure + /// + /// Exit QEMU with error + Failed = 0x11, } /// # Exit QEMU /// /// Exit QEMU with an exit code pub fn exit_qemu(exit_code: QemuExitCode) { - use x86_64::instructions::port::Port; + use x86_64::instructions::port::Port; - unsafe { - let mut port = Port::new(0xf4); - port.write(exit_code as u32); - } + unsafe { + let mut port = Port::new(0xf4); + port.write(exit_code as u32); + } } |
