mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-04-25 07:12:15 +00:00
fix test
This commit is contained in:
parent
2ea7022ca8
commit
b44e51a82c
@ -401,7 +401,8 @@ mod integration_tests {
|
||||
fn serde_code() {
|
||||
let mut module = deserialize_file("./res/cases/v1/test5.wasm").expect("Should be deserialized");
|
||||
module.sections_mut().retain(|x| {
|
||||
if let &Section::Code(_) = x { true } else { false }
|
||||
if let &Section::Code(_) = x { return true }
|
||||
if let &Section::Function(_) = x { true } else { false }
|
||||
});
|
||||
|
||||
let buf = serialize(module).expect("serialization to succeed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user