mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 06:31:32 +00:00
Fix formatting
This commit is contained in:
@ -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.
|
||||||
|
@ -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};
|
||||||
|
Reference in New Issue
Block a user