Skip to content

Commit a059231

Browse files
authored
Merge pull request #64 from rylev/another-defined-type
Find defined type id used in remapping in `ItemKind::Type`
2 parents 40b3c38 + 8d55aa2 commit a059231

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)