fmt
This commit is contained in:
parent
7d1d6efe38
commit
0dc908c81b
|
@ -1,11 +1,12 @@
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use alloc::prelude::v1::*;
|
use alloc::prelude::v1::*;
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
use core::cell::{Cell, RefCell};
|
use core::{
|
||||||
use core::cmp;
|
cell::{Cell, RefCell},
|
||||||
use core::fmt;
|
cmp, fmt,
|
||||||
use core::ops::Range;
|
ops::Range,
|
||||||
use core::u32;
|
u32,
|
||||||
|
};
|
||||||
use memory_units::{Bytes, Pages, RoundUpTo};
|
use memory_units::{Bytes, Pages, RoundUpTo};
|
||||||
use parity_wasm::elements::ResizableLimits;
|
use parity_wasm::elements::ResizableLimits;
|
||||||
use value::LittleEndianConvert;
|
use value::LittleEndianConvert;
|
||||||
|
|
|
@ -153,9 +153,11 @@ mod tests {
|
||||||
|
|
||||||
use super::{F32, F64};
|
use super::{F32, F64};
|
||||||
|
|
||||||
use core::fmt::Debug;
|
use core::{
|
||||||
use core::iter;
|
fmt::Debug,
|
||||||
use core::ops::{Add, Div, Mul, Neg, Sub};
|
iter,
|
||||||
|
ops::{Add, Div, Mul, Neg, Sub},
|
||||||
|
};
|
||||||
|
|
||||||
fn test_ops<T, F, I>(iter: I)
|
fn test_ops<T, F, I>(iter: I)
|
||||||
where
|
where
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
use crate::{Error, PlainValidator};
|
use crate::{Error, PlainValidator};
|
||||||
use parity_wasm::builder::module;
|
use parity_wasm::{
|
||||||
use parity_wasm::elements::{
|
builder::module,
|
||||||
BlockType, External, GlobalEntry, GlobalType, ImportEntry, InitExpr, Instruction, Instructions,
|
elements::{
|
||||||
MemoryType, Module, TableType, ValueType,
|
BlockType, External, GlobalEntry, GlobalType, ImportEntry, InitExpr, Instruction,
|
||||||
|
Instructions, MemoryType, Module, TableType, ValueType,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
fn validate_module(module: &Module) -> Result<(), Error> {
|
fn validate_module(module: &Module) -> Result<(), Error> {
|
||||||
|
|
Loading…
Reference in New Issue