fix nightly and warnings
This commit is contained in:
parent
6e9d2eb8d2
commit
a51413563e
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
|
||||
use core::fmt;
|
||||
#[cfg(feature = "std")]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::alloc::rc::{Rc, Weak};
|
||||
use core::fmt;
|
||||
use crate::host::Externals;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use hashbrown::HashMap;
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
//!
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
|
||||
/// Should we keep a value before "discarding" a stack frame?
|
||||
///
|
||||
|
|
|
@ -98,6 +98,7 @@
|
|||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
//// alloc is required in no_std
|
||||
#![cfg_attr(not(feature = "std"), feature(alloc))]
|
||||
#![cfg_attr(not(feature = "std"), feature(alloc_prelude))]
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[macro_use]
|
||||
|
@ -121,7 +122,7 @@ extern crate memory_units as memory_units_crate;
|
|||
extern crate parity_wasm;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use core::fmt;
|
||||
#[cfg(feature = "std")]
|
||||
use std::error;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::alloc::rc::Rc;
|
||||
use core::cell::{Cell, RefCell};
|
||||
use core::cmp;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::alloc::rc::Rc;
|
||||
use core::cell::RefCell;
|
||||
use core::fmt;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX};
|
||||
use core::fmt;
|
||||
use core::ops;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::alloc::rc::Rc;
|
||||
use core::cell::RefCell;
|
||||
use core::fmt;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use parity_wasm::elements::{
|
||||
BlockType, FunctionType, GlobalType, MemoryType, TableType, ValueType,
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use crate::common::{DEFAULT_MEMORY_INDEX, DEFAULT_TABLE_INDEX};
|
||||
use core::u32;
|
||||
use parity_wasm::elements::{BlockType, Func, FuncBody, Instruction, TableElementType, ValueType};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use core::fmt;
|
||||
#[cfg(feature = "std")]
|
||||
use std::error;
|
||||
|
@ -150,8 +150,6 @@ pub fn deny_floating_point(module: &Module) -> Result<(), Error> {
|
|||
}
|
||||
|
||||
if let (Some(sec), Some(types)) = (module.function_section(), module.type_section()) {
|
||||
use parity_wasm::elements::{Type, ValueType};
|
||||
|
||||
let types = types.types();
|
||||
|
||||
for sig in sec.entries() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::alloc::prelude::*;
|
||||
use crate::alloc::prelude::v1::*;
|
||||
use parity_wasm::elements::{Local, ValueType};
|
||||
use crate::validation::Error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue