mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-25 14:57:56 +00:00
Fixes necessary for having no_std imports work with edition2018
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::vec::Vec;
|
||||
use crate::std::vec::Vec;
|
||||
|
||||
use parity_wasm::elements::{self, BlockType, Type};
|
||||
use super::{resolve_func_type, Error};
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
//! between the frames.
|
||||
//! - upon entry into the function entire stack frame is allocated.
|
||||
|
||||
use std::string::String;
|
||||
use std::vec::Vec;
|
||||
use crate::std::string::String;
|
||||
use crate::std::vec::Vec;
|
||||
|
||||
use parity_wasm::elements::{self, Type};
|
||||
use parity_wasm::builder;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#[cfg(features = "std")]
|
||||
use std::collections::{HashMap as Map};
|
||||
use crate::std::collections::{HashMap as Map};
|
||||
#[cfg(not(features = "std"))]
|
||||
use std::collections::{BTreeMap as Map};
|
||||
use std::vec::Vec;
|
||||
use crate::std::collections::{BTreeMap as Map};
|
||||
use crate::std::vec::Vec;
|
||||
|
||||
use parity_wasm::elements::{self, FunctionType, Internal};
|
||||
use parity_wasm::builder;
|
||||
|
||||
Reference in New Issue
Block a user