Skip to content

Commit a069647

Browse files
committed
fix(wasm_sandbox): drop trailing None from map_file_cow call
hyperlight-host 0.16.0 dropped the third `Option` argument on `MultiUseSandbox::map_file_cow`. Without this fix the bump to host 0.16 fails to compile with E0061 unexpected argument. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent b441624 commit a069647

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl WasmSandbox {
226226
self.clean_inner()?;
227227

228228
self.inner.load_via_fn(|inner| {
229-
if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA, None) {
229+
if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA) {
230230
inner.call::<()>("LoadWasmModulePhys", (MAPPED_BINARY_VA, len))?;
231231
} else {
232232
let wasm_bytes = std::fs::read(file)?;

0 commit comments

Comments
 (0)