This commit is contained in:
Sergey Pepyakin 2019-04-16 16:14:19 +02:00
parent 98570fc1d7
commit 921dda469e
2 changed files with 4 additions and 7 deletions

View File

@ -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,

View File

@ -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,