Skip to content

Commit 97dc9bc

Browse files
committed
[fmt/clippy] fmt on guests + typo
Signed-off-by: danbugs <[email protected]>
1 parent 1070168 commit 97dc9bc

File tree

2 files changed

+5
-3
lines changed
  • src
    • hyperlight_guest/src
    • tests/rust_guests/simpleguest/src

2 files changed

+5
-3
lines changed

src/hyperlight_guest/src/idt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use crate::interrupt_entry::{
2626
pub(crate) struct IdtEntry {
2727
offset_low: u16, // Lower 16 bits of handler address
2828
selector: u16, // code segment selector in GDT
29-
ist: u8, // Interrupt Stack Table offset
29+
interrupt_stack_table_offset: u8, // Interrupt Stack Table offset
3030
type_attr: u8, // Gate type and flags
3131
offset_mid: u16, // Middle 16 bits of handler address
3232
offset_high: u32, // High 32 bits of handler address
@@ -38,7 +38,7 @@ impl IdtEntry {
3838
Self {
3939
offset_low: (handler & 0xFFFF) as u16,
4040
selector: 0x08, // Kernel Code Segment
41-
ist: 0, // No IST used
41+
interrupt_stack_table_offset: 0, // No IST used
4242
type_attr: 0x8E,
4343
// 0x8E = 10001110b
4444
// 1 00 0 1110

src/tests/rust_guests/simpleguest/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,9 @@ fn log_message(function_call: &FunctionCall) -> Result<Vec<u8>> {
638638
}
639639

640640
fn trigger_exception(_: &FunctionCall) -> Result<Vec<u8>> {
641-
unsafe { core::arch::asm!("ud2"); } // trigger an undefined instruction exception
641+
unsafe {
642+
core::arch::asm!("ud2");
643+
} // trigger an undefined instruction exception
642644
Ok(get_flatbuffer_result_from_void())
643645
}
644646

0 commit comments

Comments
 (0)