Navigation Menu

Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 20, 2020
1 parent 3213448 commit 4efac38
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion crates/api/src/func.rs
Expand Up @@ -368,7 +368,8 @@ impl Func {
// Each function signature in a module should have a trampoline stored
// on that module as well, so unwrap the result here since otherwise
// it's a bug in wasmtime.
let trampoline = instance_handle.trampoline(export.signature)
let trampoline = instance_handle
.trampoline(export.signature)
.expect("failed to retrieve trampoline from module");

let callable = WasmtimeFn::new(store, instance_handle, export, trampoline);
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/trampoline/func.rs
Expand Up @@ -4,8 +4,8 @@ use super::create_handle::create_handle;
use crate::{Callable, FuncType, Store, Trap, Val};
use anyhow::{bail, Result};
use std::any::Any;
use std::collections::HashMap;
use std::cmp;
use std::collections::HashMap;
use std::mem;
use std::panic::{self, AssertUnwindSafe};
use std::rc::Rc;
Expand Down
4 changes: 2 additions & 2 deletions crates/jit/src/imports.rs
Expand Up @@ -7,8 +7,8 @@ use wasmtime_environ::entity::PrimaryMap;
use wasmtime_environ::wasm::{Global, GlobalInit, Memory, Table, TableElementType};
use wasmtime_environ::{MemoryPlan, MemoryStyle, Module, TablePlan};
use wasmtime_runtime::{
Export, Imports, InstanceHandle, LinkError, VMFunctionImport, VMGlobalImport, VMMemoryImport,
VMTableImport, SignatureRegistry,
Export, Imports, InstanceHandle, LinkError, SignatureRegistry, VMFunctionImport,
VMGlobalImport, VMMemoryImport, VMTableImport,
};

/// This function allows to match all imports of a `Module` with concrete definitions provided by
Expand Down
4 changes: 2 additions & 2 deletions crates/runtime/src/export.rs
@@ -1,6 +1,6 @@
use crate::vmcontext::{
VMContext, VMFunctionBody, VMGlobalDefinition, VMMemoryDefinition, VMTableDefinition,
VMSharedSignatureIndex,
VMContext, VMFunctionBody, VMGlobalDefinition, VMMemoryDefinition, VMSharedSignatureIndex,
VMTableDefinition,
};
use wasmtime_environ::wasm::Global;
use wasmtime_environ::{MemoryPlan, TablePlan};
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/instance.rs
Expand Up @@ -21,7 +21,7 @@ use more_asserts::assert_lt;
use std::alloc::{self, Layout};
use std::any::Any;
use std::cell::Cell;
use std::collections::{HashSet, HashMap};
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::rc::Rc;
use std::sync::Arc;
Expand Down

0 comments on commit 4efac38

Please sign in to comment.