From 0dc908c81bb7e88fda3c49697b3e8ae404f83d04 Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Thu, 18 Apr 2019 15:11:23 +0200 Subject: [PATCH] fmt --- src/memory.rs | 11 ++++++----- src/nan_preserving_float.rs | 8 +++++--- validation/src/tests.rs | 10 ++++++---- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/memory.rs b/src/memory.rs index 22ff1b7..1f29f03 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -1,11 +1,12 @@ #[allow(unused_imports)] use alloc::prelude::v1::*; use alloc::rc::Rc; -use core::cell::{Cell, RefCell}; -use core::cmp; -use core::fmt; -use core::ops::Range; -use core::u32; +use core::{ + cell::{Cell, RefCell}, + cmp, fmt, + ops::Range, + u32, +}; use memory_units::{Bytes, Pages, RoundUpTo}; use parity_wasm::elements::ResizableLimits; use value::LittleEndianConvert; diff --git a/src/nan_preserving_float.rs b/src/nan_preserving_float.rs index 1f12089..e63d476 100644 --- a/src/nan_preserving_float.rs +++ b/src/nan_preserving_float.rs @@ -153,9 +153,11 @@ mod tests { use super::{F32, F64}; - use core::fmt::Debug; - use core::iter; - use core::ops::{Add, Div, Mul, Neg, Sub}; + use core::{ + fmt::Debug, + iter, + ops::{Add, Div, Mul, Neg, Sub}, + }; fn test_ops(iter: I) where diff --git a/validation/src/tests.rs b/validation/src/tests.rs index 2da4598..c6794cf 100644 --- a/validation/src/tests.rs +++ b/validation/src/tests.rs @@ -1,8 +1,10 @@ use crate::{Error, PlainValidator}; -use parity_wasm::builder::module; -use parity_wasm::elements::{ - BlockType, External, GlobalEntry, GlobalType, ImportEntry, InitExpr, Instruction, Instructions, - MemoryType, Module, TableType, ValueType, +use parity_wasm::{ + builder::module, + elements::{ + BlockType, External, GlobalEntry, GlobalType, ImportEntry, InitExpr, Instruction, + Instructions, MemoryType, Module, TableType, ValueType, + }, }; fn validate_module(module: &Module) -> Result<(), Error> {