fmt.
This commit is contained in:
parent
98570fc1d7
commit
921dda469e
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue