Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on committed Oct 20, 2023
1 parent fbb7208 commit 7256ce6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions utils/wasm-gen/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,11 @@ pub fn instrument_recursion(module: Module) -> Module {
_ => None,
})
})
.map(Into::<WasmPageCount>::into).map(|page_count| page_count.memory_size()) else {
return module;
};
.map(Into::<WasmPageCount>::into)
.map(|page_count| page_count.memory_size())
else {
return module;
};

let call_depth_ptr = mem_size - mem::size_of::<u32>() as u32;
let gas_ptr = call_depth_ptr - mem::size_of::<u64>() as u32;
Expand Down Expand Up @@ -284,7 +286,9 @@ pub fn instrument_recursion(module: Module) -> Module {
}
};

let (Some(type_section), Some(function_section)) = (module.type_section(), module.function_section()) else {
let (Some(type_section), Some(function_section)) =
(module.type_section(), module.function_section())
else {
return module;
};

Expand Down

0 comments on commit 7256ce6

Please sign in to comment.