Fix linting related issues (#164)

This commit is contained in:
Chevdor
2021-07-27 16:14:14 +02:00
committed by GitHub
parent 72626a566a
commit b8b18be419
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -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
-1
View File
@@ -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();
+1 -1
View File
@@ -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")