Skip to content

Commit 8d55aa2

Browse files
committed
Find defined type id for remapping in ItemKind::Type
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
1 parent 40b3c38 commit 8d55aa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/wac-types/src/aggregator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ impl TypeAggregator {
679679
.get(&ItemKind::Type(Type::Value(ValueType::Defined(id))))
680680
{
681681
return match kind {
682-
ItemKind::Value(ValueType::Defined(id)) => *id,
683-
_ => panic!("expected a defined type"),
682+
ItemKind::Type(Type::Value(ValueType::Defined(id))) => *id,
683+
_ => panic!("expected a defined type got {kind:?}"),
684684
};
685685
}
686686

0 commit comments

Comments
 (0)