Skip to content

Commit 8fe991a

Browse files
committed
fix: cargo fmt
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent a5fda11 commit 8fe991a

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

host/src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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)?;

0 commit comments

Comments
 (0)