diff --git a/src/gas/validation.rs b/src/gas/validation.rs index 7727871..5bd2b2f 100644 --- a/src/gas/validation.rs +++ b/src/gas/validation.rs @@ -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 diff --git a/src/pack.rs b/src/pack.rs index dc6c9cb..cd84fce 100644 --- a/src/pack.rs +++ b/src/pack.rs @@ -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(); diff --git a/src/stack_height/max_height.rs b/src/stack_height/max_height.rs index 8fb752c..4e928d3 100644 --- a/src/stack_height/max_height.rs +++ b/src/stack_height/max_height.rs @@ -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")