Skip to content

Commit 302c79a

Browse files
committed
Update callbackguest to 2024 edition
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 6fcffdb commit 302c79a

File tree

1 file changed

+2
-2
lines changed
  • src/tests/rust_guests/callbackguest/src

1 file changed

+2
-2
lines changed

src/tests/rust_guests/callbackguest/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn call_host_spin(_: &FunctionCall) -> Result<Vec<u8>> {
161161
Ok(get_flatbuffer_result(()))
162162
}
163163

164-
#[no_mangle]
164+
#[unsafe(no_mangle)]
165165
pub extern "C" fn hyperlight_main() {
166166
let print_output_def = GuestFunctionDefinition::new(
167167
"PrintOutput".to_string(),
@@ -240,7 +240,7 @@ pub extern "C" fn hyperlight_main() {
240240
register_function(call_host_spin_def);
241241
}
242242

243-
#[no_mangle]
243+
#[unsafe(no_mangle)]
244244
pub fn guest_dispatch_function(function_call: FunctionCall) -> Result<Vec<u8>> {
245245
Err(HyperlightGuestError::new(
246246
ErrorCode::GuestFunctionNotFound,

0 commit comments

Comments
 (0)