From 921dda469e3d156cc53bd39112d3533302e52564 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Tue, 16 Apr 2019 16:14:19 +0200 Subject: [PATCH] fmt. --- src/prepare/compile.rs | 2 +- validation/src/lib.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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,