Skip to content

Commit 8dda6d3

Browse files
committed
refactor(go): combine duplicate GuestDeallocate match arms
1 parent 5866a5a commit 8dda6d3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/go/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,10 +2613,7 @@ for index := 0; index < int({length}); index++ {{
26132613
}
26142614
Instruction::IterMapKey { .. } => results.push("map_key".into()),
26152615
Instruction::IterMapValue { .. } => results.push("map_value".into()),
2616-
Instruction::GuestDeallocateMap { .. } => {
2617-
// Nothing to do here; should be handled when calling `pinner.Unpin()`
2618-
}
2619-
Instruction::GuestDeallocate { .. } => {
2616+
Instruction::GuestDeallocateMap { .. } | Instruction::GuestDeallocate { .. } => {
26202617
// Nothing to do here; should be handled when calling `pinner.Unpin()`
26212618
}
26222619
_ => unimplemented!("{instruction:?}"),

0 commit comments

Comments
 (0)