mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-24 16:47:56 +00:00
Update matches with single arm to be if-let statements
This commit is contained in:
@@ -142,9 +142,8 @@ pub(crate) fn generate_thunks(
|
||||
match *section {
|
||||
elements::Section::Export(ref mut export_section) => {
|
||||
for entry in export_section.entries_mut() {
|
||||
match *entry.internal_mut() {
|
||||
Internal::Function(ref mut function_idx) => fixup(function_idx),
|
||||
_ => {}
|
||||
if let Internal::Function(ref mut function_idx) = *entry.internal_mut() {
|
||||
fixup(function_idx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user