mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-12 18:11:07 +00:00
Fix linting related issues (#164)
This commit is contained in:
@@ -154,7 +154,6 @@ fn build_control_flow_graph(
|
||||
graph.set_first_instr_pos(entry_node_id, 0);
|
||||
|
||||
let mut stack = vec![ControlFrame::new(entry_node_id, terminal_node_id, false)];
|
||||
|
||||
let mut metered_blocks_iter = blocks.iter().peekable();
|
||||
for (cursor, instruction) in body.code().elements().iter().enumerate() {
|
||||
let active_node_id = stack
|
||||
|
||||
@@ -251,7 +251,6 @@ pub fn pack_instance(
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{super::optimize, *};
|
||||
use parity_wasm::builder;
|
||||
|
||||
fn test_packer(mut module: elements::Module, target_runtime: &TargetRuntime) {
|
||||
let mut ctor_module = module.clone();
|
||||
|
||||
@@ -506,7 +506,7 @@ mod tests {
|
||||
)
|
||||
"#;
|
||||
let module = elements::deserialize_buffer(
|
||||
&wabt::Wat2Wasm::new()
|
||||
wabt::Wat2Wasm::new()
|
||||
.validate(false)
|
||||
.convert(SOURCE)
|
||||
.expect("Failed to wat2wasm")
|
||||
|
||||
Reference in New Issue
Block a user