fmt.
This commit is contained in:
parent
98570fc1d7
commit
921dda469e
|
@ -1,7 +1,7 @@
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use alloc::prelude::v1::*;
|
use alloc::prelude::v1::*;
|
||||||
|
|
||||||
use parity_wasm::elements::{BlockType, Instruction, FuncBody};
|
use parity_wasm::elements::{BlockType, FuncBody, Instruction};
|
||||||
|
|
||||||
use validation::func::{
|
use validation::func::{
|
||||||
require_label, top_label, BlockFrame, FunctionValidationContext, StackValueType, StartedWith,
|
require_label, top_label, BlockFrame, FunctionValidationContext, StackValueType, StartedWith,
|
||||||
|
|
|
@ -34,8 +34,8 @@ use std::collections::HashSet;
|
||||||
|
|
||||||
use self::context::ModuleContextBuilder;
|
use self::context::ModuleContextBuilder;
|
||||||
use parity_wasm::elements::{
|
use parity_wasm::elements::{
|
||||||
BlockType, External, GlobalEntry, GlobalType, InitExpr, Instruction, Internal, MemoryType,
|
BlockType, External, FuncBody, GlobalEntry, GlobalType, InitExpr, Instruction, Internal,
|
||||||
Module, ResizableLimits, TableType, Type, ValueType, FuncBody,
|
MemoryType, Module, ResizableLimits, TableType, Type, ValueType,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub mod context;
|
pub mod context;
|
||||||
|
@ -83,10 +83,7 @@ pub trait Validator {
|
||||||
|
|
||||||
pub trait FuncValidator {
|
pub trait FuncValidator {
|
||||||
type Output;
|
type Output;
|
||||||
fn new(
|
fn new(ctx: &func::FunctionValidationContext, body: &FuncBody) -> Self;
|
||||||
ctx: &func::FunctionValidationContext,
|
|
||||||
body: &FuncBody,
|
|
||||||
) -> Self;
|
|
||||||
fn next_instruction(
|
fn next_instruction(
|
||||||
&mut self,
|
&mut self,
|
||||||
ctx: &mut func::FunctionValidationContext,
|
ctx: &mut func::FunctionValidationContext,
|
||||||
|
|
Loading…
Reference in New Issue