Skip to content

Commit c58668d

Browse files
committed
Remove whitespace in panic handler and rename test function in
simpleguest Signed-off-by: adamperlin <adamp@nanosoft.com>
1 parent 246518c commit c58668d

File tree

2 files changed

+2
-3
lines changed
  • src
    • hyperlight_guest_bin/src
    • tests/rust_guests/simpleguest/src

2 files changed

+2
-3
lines changed

src/hyperlight_guest_bin/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ fn _panic_handler(info: &core::panic::PanicInfo) -> ! {
170170
}
171171

172172
let c_str_res = CStr::from_bytes_with_nul(panic_buf_guard.as_bytes());
173-
174173
if c_str_res.is_err() {
175174
unsafe {
176175
abort_with_code_and_message(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,13 @@ pub extern "C" fn hyperlight_main() {
10411041
);
10421042
register_function(call_malloc_def);
10431043

1044-
let call_malloc_and_panic_def = GuestFunctionDefinition::new(
1044+
let exhaust_heap_def = GuestFunctionDefinition::new(
10451045
"ExhaustHeap".to_string(),
10461046
Vec::new(),
10471047
ReturnType::Int,
10481048
exhaust_heap as usize,
10491049
);
1050-
register_function(call_malloc_and_panic_def);
1050+
register_function(exhaust_heap_def);
10511051

10521052
let malloc_and_free_def = GuestFunctionDefinition::new(
10531053
"MallocAndFree".to_string(),

0 commit comments

Comments
 (0)