diff --git a/src/prepare/compile.rs b/src/prepare/compile.rs index 6714a18..383fcb4 100644 --- a/src/prepare/compile.rs +++ b/src/prepare/compile.rs @@ -1,7 +1,7 @@ #[allow(unused_imports)] use alloc::prelude::v1::*; -use parity_wasm::elements::{BlockType, Instruction, FuncBody}; +use parity_wasm::elements::{BlockType, FuncBody, Instruction}; use validation::func::{ require_label, top_label, BlockFrame, FunctionValidationContext, StackValueType, StartedWith, diff --git a/validation/src/lib.rs b/validation/src/lib.rs index 11fa542..8a562a6 100644 --- a/validation/src/lib.rs +++ b/validation/src/lib.rs @@ -34,8 +34,8 @@ use std::collections::HashSet; use self::context::ModuleContextBuilder; use parity_wasm::elements::{ - BlockType, External, GlobalEntry, GlobalType, InitExpr, Instruction, Internal, MemoryType, - Module, ResizableLimits, TableType, Type, ValueType, FuncBody, + BlockType, External, FuncBody, GlobalEntry, GlobalType, InitExpr, Instruction, Internal, + MemoryType, Module, ResizableLimits, TableType, Type, ValueType, }; pub mod context; @@ -83,10 +83,7 @@ pub trait Validator { pub trait FuncValidator { type Output; - fn new( - ctx: &func::FunctionValidationContext, - body: &FuncBody, - ) -> Self; + fn new(ctx: &func::FunctionValidationContext, body: &FuncBody) -> Self; fn next_instruction( &mut self, ctx: &mut func::FunctionValidationContext,