From bac02c50f2e7801ce3e3c2712307a70e18dd12d6 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 13 Apr 2021 12:42:00 -0700 Subject: [PATCH] port command and example to use sync wasmtime_wasi --- examples/wasi/main.rs | 2 +- src/commands/run.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/wasi/main.rs b/examples/wasi/main.rs index f808be3eca..0c3f077d93 100644 --- a/examples/wasi/main.rs +++ b/examples/wasi/main.rs @@ -5,7 +5,7 @@ use anyhow::Result; use wasmtime::*; -use wasmtime_wasi::{sync::WasiCtxBuilder, Wasi}; +use wasmtime_wasi::sync::{Wasi, WasiCtxBuilder}; fn main() -> Result<()> { tracing_subscriber::FmtSubscriber::builder() diff --git a/src/commands/run.rs b/src/commands/run.rs index 9c57add91f..f1f8da46e5 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -11,10 +11,7 @@ use std::{ }; use structopt::{clap::AppSettings, StructOpt}; use wasmtime::{Engine, Func, Linker, Module, Store, Trap, Val, ValType}; -use wasmtime_wasi::{ - sync::{Dir, WasiCtxBuilder}, - Wasi, -}; +use wasmtime_wasi::sync::{Dir, Wasi, WasiCtxBuilder}; #[cfg(feature = "wasi-nn")] use wasmtime_wasi_nn::{WasiNn, WasiNnCtx};