Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Joinhack committed Nov 27, 2024
1 parent f546596 commit 36e6c56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blockless/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ use context::BlocklessContext;
pub use error::*;
use log::{debug, error};
use modules::ModuleLinker;
use wasmtime_wasi::{DirPerms, FilePerms};
use std::sync::Mutex;
use std::{env, path::Path, sync::Arc};
use wasi_common::sync::WasiCtxBuilder;
use wasi_common::sync::{Dir, TcpListener};
pub use wasi_common::*;
use wasmtime::{
component::Component, Config, Engine, Linker, Module,
Precompiled, Store, StoreLimits, StoreLimitsBuilder, Trap,
component::Component, Config, Engine, Linker, Module, Precompiled, Store, StoreLimits,
StoreLimitsBuilder, Trap,
};
use wasmtime_wasi::{DirPerms, FilePerms};
use wasmtime_wasi_threads::WasiThreadsCtx;

// the default wasm entry name.
Expand Down Expand Up @@ -256,7 +256,7 @@ impl BlocklessConfig2Preview1WasiBuilder for BlocklessConfig {
}
conf
}

fn preview2_builder(&self) -> anyhow::Result<wasmtime_wasi::WasiCtxBuilder> {
let mut builder = wasmtime_wasi::WasiCtxBuilder::new();
for (host_path, guest_path) in self.dirs.iter() {
Expand Down

0 comments on commit 36e6c56

Please sign in to comment.