@@ -45,7 +45,9 @@ use hyperlight_guest::error::{HyperlightGuestError, Result};
45
45
use hyperlight_guest:: exit:: { abort_with_code, abort_with_code_and_message} ;
46
46
use hyperlight_guest_bin:: guest_function:: definition:: GuestFunctionDefinition ;
47
47
use hyperlight_guest_bin:: guest_function:: register:: register_function;
48
- use hyperlight_guest_bin:: host_comm:: { call_host_function, call_host_function_without_returning} ;
48
+ use hyperlight_guest_bin:: host_comm:: {
49
+ call_host_function, call_host_function_without_returning_result,
50
+ } ;
49
51
use hyperlight_guest_bin:: memory:: malloc;
50
52
use hyperlight_guest_bin:: { guest_logger, MIN_STACK_ADDRESS } ;
51
53
use log:: { error, LevelFilter } ;
@@ -1194,9 +1196,13 @@ fn fuzz_host_function(func: FunctionCall) -> Result<Vec<u8>> {
1194
1196
1195
1197
// Because we do not know at compile time the actual return type of the host function to be called
1196
1198
// we cannot use the `call_host_function<T>` generic function.
1197
- // We need to use the `call_host_function_without_returning ` function that does not retrieve the return
1199
+ // We need to use the `call_host_function_without_returning_result ` function that does not retrieve the return
1198
1200
// value
1199
- call_host_function_without_returning ( & host_func_name, Some ( params) , func. expected_return_type )
1200
- . expect ( "failed to call host function" ) ;
1201
+ call_host_function_without_returning_result (
1202
+ & host_func_name,
1203
+ Some ( params) ,
1204
+ func. expected_return_type ,
1205
+ )
1206
+ . expect ( "failed to call host function" ) ;
1201
1207
Ok ( get_flatbuffer_result ( ( ) ) )
1202
1208
}
0 commit comments