Skip to content

Commit

Permalink
chore: unecessary lazy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Jun 14, 2023
1 parent 706ca25 commit ea009fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homestar-wasm/src/wasmtime/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ impl<T> Env<T> {
let param_types = self
.bindings
.as_mut()
.ok_or_else(|| Error::WasmInstantiationError)?
.ok_or(Error::WasmInstantiationError)?
.func()
.params(&self.store);
let result_types = self
.bindings
.as_mut()
.ok_or_else(|| Error::WasmInstantiationError)?
.ok_or(Error::WasmInstantiationError)?
.func()
.results(&self.store);

Expand Down Expand Up @@ -140,14 +140,14 @@ impl<T> Env<T> {

self.bindings
.as_mut()
.ok_or_else(|| Error::WasmInstantiationError)?
.ok_or(Error::WasmInstantiationError)?
.func()
.call_async(&mut self.store, &params, &mut results_alloc)
.await?;

self.bindings
.as_mut()
.ok_or_else(|| Error::WasmInstantiationError)?
.ok_or(Error::WasmInstantiationError)?
.func()
.post_return_async(&mut self.store)
.await?;
Expand Down

0 comments on commit ea009fc

Please sign in to comment.