Skip to content

Commit cf49161

Browse files
committed
fixup! Change sandbox restore to be a bit more judicious about when to restore
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 8a24a68 commit cf49161

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ mod backing_sandbox {
8686
};
8787
Ok(())
8888
}
89-
pub(super) fn load_via_fn(&mut self, load: impl FnOnce(&mut MultiUseSandbox) -> Result<()>) -> Result<()> {
89+
pub(super) fn load_via_fn(
90+
&mut self,
91+
load: impl FnOnce(&mut MultiUseSandbox) -> Result<()>,
92+
) -> Result<()> {
9093
*self = match std::mem::replace(self, BackingSandbox::Missing) {
9194
BackingSandbox::Clean(mut x) => {
9295
load(&mut x)?;

0 commit comments

Comments
 (0)