File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1408,16 +1408,15 @@ impl Sandbox {
14081408 if let Some ( tools) = build_tools ( None , preopens) ? {
14091409 let tools = Arc :: new ( tools) ;
14101410 let tools_ref = tools. clone ( ) ;
1411- host_funcs. register_host_function (
1412- "__dispatch" ,
1413- move | payload : Vec < u8 > | -> Vec < u8 > { tools_ref. dispatch ( & payload) } ,
1414- ) ?;
1411+ host_funcs
1412+ . register_host_function ( "__dispatch" , move | payload : Vec < u8 > | -> Vec < u8 > {
1413+ tools_ref. dispatch ( & payload)
1414+ } ) ?;
14151415 }
14161416 } else {
1417- host_funcs. register_host_function (
1418- "__dispatch" ,
1419- |_payload : Vec < u8 > | -> Vec < u8 > { Vec :: new ( ) } ,
1420- ) ?;
1417+ host_funcs. register_host_function ( "__dispatch" , |_payload : Vec < u8 > | -> Vec < u8 > {
1418+ Vec :: new ( )
1419+ } ) ?;
14211420 }
14221421
14231422 let inner = MultiUseSandbox :: from_snapshot ( arc. clone ( ) , host_funcs, None ) ?;
You can’t perform that action at this time.
0 commit comments