mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-26 00:17:55 +00:00
chore: fix clippy warnings on latest nightly rust (#78)
btw `#[cfg(...)]` was used implicitly and expanded always lead to `use alloc::collections::BTreeMap as Map;` the second `cfg(std)` just doesn't work bcz `featureS`
This commit is contained in:
committed by
GitHub
parent
fdce5c64f1
commit
fd3b1f856b
@@ -1,12 +1,8 @@
|
||||
#[cfg(not(features = "std"))]
|
||||
use alloc::collections::BTreeMap as Map;
|
||||
use alloc::vec::Vec;
|
||||
use alloc::{collections::BTreeMap as Map, vec::Vec};
|
||||
use parity_wasm::{
|
||||
builder,
|
||||
elements::{self, FunctionType, Internal},
|
||||
};
|
||||
#[cfg(features = "std")]
|
||||
use std::collections::HashMap as Map;
|
||||
|
||||
use super::{resolve_func_type, Context};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user