mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-12 22:05:33 +00:00
Fix formatting
This commit is contained in:
parent
63a90d0ef0
commit
6d55776b8e
@ -25,10 +25,10 @@ pub mod vm;
|
||||
pub mod vmcalls;
|
||||
|
||||
use self::error::CompileResult;
|
||||
pub use self::error::Result;
|
||||
pub use self::instance::Instance;
|
||||
#[doc(inline)]
|
||||
pub use self::module::Module;
|
||||
pub use self::error::Result;
|
||||
use std::rc::Rc;
|
||||
|
||||
/// Compile a webassembly module using the provided compiler.
|
||||
|
@ -71,8 +71,7 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
|
||||
let isa = webassembly::get_isa();
|
||||
|
||||
debug!("webassembly - creating module");
|
||||
let module = webassembly::compile(&wasm_binary[..])
|
||||
.map_err(|e| format!("{:?}", e))?;
|
||||
let module = webassembly::compile(&wasm_binary[..]).map_err(|e| format!("{:?}", e))?;
|
||||
|
||||
let abi = if wasmer_emscripten::is_emscripten_module(&module) {
|
||||
webassembly::InstanceABI::Emscripten
|
||||
@ -107,7 +106,8 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
|
||||
&mut instance,
|
||||
options.path.to_str().unwrap(),
|
||||
options.args.iter().map(|arg| arg.as_str()).collect(),
|
||||
).map_err(|e| format!("{:?}", e))?)
|
||||
)
|
||||
.map_err(|e| format!("{:?}", e))?)
|
||||
}
|
||||
|
||||
fn run(options: Run) {
|
||||
|
@ -5,10 +5,10 @@ pub mod utils;
|
||||
use wasmer_clif_backend::CraneliftCompiler;
|
||||
use wasmer_runtime::{
|
||||
self as runtime,
|
||||
error::{CallResult, Result},
|
||||
import::Imports,
|
||||
instance::Instance,
|
||||
module::{Module, ModuleInner},
|
||||
error::{Result, CallResult},
|
||||
};
|
||||
|
||||
use cranelift_codegen::{
|
||||
|
Loading…
Reference in New Issue
Block a user