Skip to content

Commit

Permalink
Rename rec_group method to unwrap_rec_group
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Nov 3, 2023
1 parent 991eff6 commit 38fdfb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wasmparser/src/readers/core/types/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub(crate) struct WithRecGroup<T> {

impl<T: std::fmt::Debug> WithRecGroup<T> {
#[inline]
fn rec_group(x: Self) -> RecGroupId {
fn unwrap_rec_group(x: Self) -> RecGroupId {
match x.rec_group_id {
Some(id) => id,
_ => panic!("WithRecGroup::rec_group({x:?}): missing rec group context"),
Expand Down Expand Up @@ -107,7 +107,7 @@ fn core_type_id(
if let Some(id) = index.as_core_type_id() {
Ok(id)
} else {
let group = WithRecGroup::rec_group(index);
let group = WithRecGroup::unwrap_rec_group(index);
types.at_canonicalized_packed_index(group, *index, offset)
}
}
Expand Down

0 comments on commit 38fdfb5

Please sign in to comment.