From 36e6c566bd7ffb08e63f9d8e2b095b04ccde6e04 Mon Sep 17 00:00:00 2001 From: Joinhack Date: Wed, 27 Nov 2024 23:27:04 +0800 Subject: [PATCH] fmt --- blockless/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blockless/src/lib.rs b/blockless/src/lib.rs index ef7df21..eb58bd2 100644 --- a/blockless/src/lib.rs +++ b/blockless/src/lib.rs @@ -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. @@ -256,7 +256,7 @@ impl BlocklessConfig2Preview1WasiBuilder for BlocklessConfig { } conf } - + fn preview2_builder(&self) -> anyhow::Result { let mut builder = wasmtime_wasi::WasiCtxBuilder::new(); for (host_path, guest_path) in self.dirs.iter() {