Fix formatting

This commit is contained in:
Lachlan Sneff
2019-01-17 14:14:06 -08:00
parent 93d0918122
commit b7b6e9e319
2 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,10 @@ pub struct Instance {
} }
impl Instance { impl Instance {
pub(crate) fn new(module: Rc<ModuleInner>, mut imports: Box<Imports>) -> Result<Instance, String> { pub(crate) fn new(
module: Rc<ModuleInner>,
mut imports: Box<Imports>,
) -> Result<Instance, String> {
// We need the backing and import_backing to create a vm::Ctx, but we need // We need the backing and import_backing to create a vm::Ctx, but we need
// a vm::Ctx to create a backing and an import_backing. The solution is to create an // a vm::Ctx to create a backing and an import_backing. The solution is to create an
// uninitialized vm::Ctx and then initialize it in-place. // uninitialized vm::Ctx and then initialize it in-place.

View File

@ -1,5 +1,5 @@
pub use crate::{ pub use crate::{
backing::{LocalBacking, ImportBacking}, backing::{ImportBacking, LocalBacking},
types::LocalMemoryIndex, types::LocalMemoryIndex,
}; };
use std::{mem, ptr}; use std::{mem, ptr};