Skip to content

Commit

Permalink
Style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Aug 14, 2024
1 parent b0784eb commit 98d0a0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ impl Runner {
}

fn base_build_args(
input: &PathBuf,
out: &PathBuf,
input: &Path,
out: &Path,
wit: &Option<PathBuf>,
world: &Option<String>,
) -> Vec<String> {
Expand Down Expand Up @@ -368,7 +368,7 @@ impl Runner {
}

fn setup_store(engine: &Engine, input: &[u8]) -> Result<Store<StoreContext>> {
let mut store = Store::new(&engine, StoreContext::new(usize::MAX, input));
let mut store = Store::new(engine, StoreContext::new(usize::MAX, input));
store.set_fuel(u64::MAX)?;
Ok(store)
}
Expand All @@ -382,7 +382,7 @@ impl Runner {
let module = Module::from_binary(self.linker.engine(), &self.wasm)?;

if let Some((name, bytes)) = &self.preload {
let module = Module::from_binary(self.linker.engine(), &bytes)?;
let module = Module::from_binary(self.linker.engine(), bytes)?;
let instance = self.linker.instantiate(store.as_context_mut(), &module)?;
self.linker.allow_shadowing(true);
self.linker
Expand Down

0 comments on commit 98d0a0e

Please sign in to comment.