Remove unneded prefix argument from instantiate_wasi. (#584)

* Remove unneded prefix argument from `instantiate_wasi`.

This was an artifact of an earlier backwards-compatibility mechanism
which is no longer needed.

* Remove unneeded prefix arg from remaning uses
This commit is contained in:
Dan Gohman
2019-11-16 11:40:14 -08:00
committed by GitHub
parent 0753b1206b
commit 7d47a04277
3 changed files with 6 additions and 10 deletions

View File

@@ -289,7 +289,7 @@ fn main() -> Result<()> {
#[cfg(feature = "wasi-c")]
{
let global_exports = store.borrow().global_exports().clone();
let handle = instantiate_wasi_c("", global_exports, &preopen_dirs, &argv, &environ)?;
let handle = instantiate_wasi_c(global_exports, &preopen_dirs, &argv, &environ)?;
Instance::from_handle(&store, handle)
}
#[cfg(not(feature = "wasi-c"))]