@@ -110,7 +110,7 @@ impl<'a> ComponentWorld<'a> {
110110 WorldItem :: Interface { id, .. } => {
111111 resolve. interfaces [ * id] . functions . is_empty ( )
112112 }
113- WorldItem :: Type ( _ ) => true ,
113+ WorldItem :: Type { .. } => true ,
114114 } )
115115 } ;
116116 if no_required_by_import ( ) && no_required_exports ( ) && library_info. is_none ( ) {
@@ -251,11 +251,11 @@ impl<'a> ComponentWorld<'a> {
251251 let name = resolve. name_world_key ( name) ;
252252 log:: trace!( "register import `{name}`" ) ;
253253 let import_map_key = match item {
254- WorldItem :: Function ( _) | WorldItem :: Type ( _ ) => None ,
254+ WorldItem :: Function ( _) | WorldItem :: Type { .. } => None ,
255255 WorldItem :: Interface { .. } => Some ( name) ,
256256 } ;
257257 let interface_id = match item {
258- WorldItem :: Function ( _) | WorldItem :: Type ( _ ) => None ,
258+ WorldItem :: Function ( _) | WorldItem :: Type { .. } => None ,
259259 WorldItem :: Interface { id, .. } => Some ( * id) ,
260260 } ;
261261 let interface = import_map
@@ -269,8 +269,8 @@ impl<'a> ComponentWorld<'a> {
269269 WorldItem :: Function ( func) => {
270270 interface. add_func ( required, resolve, func) ;
271271 }
272- WorldItem :: Type ( ty ) => {
273- interface. add_type ( required, resolve, * ty ) ;
272+ WorldItem :: Type { id , .. } => {
273+ interface. add_type ( required, resolve, * id ) ;
274274 }
275275 WorldItem :: Interface { id, .. } => {
276276 for ( _name, ty) in resolve. interfaces [ * id] . types . iter ( ) {
@@ -317,7 +317,7 @@ impl<'a> ComponentWorld<'a> {
317317 log:: trace!( "add live world export `{}`" , resolve. name_world_key( name) ) ;
318318 let id = match item {
319319 WorldItem :: Interface { id, .. } => id,
320- WorldItem :: Function ( _) | WorldItem :: Type ( _ ) => {
320+ WorldItem :: Function ( _) | WorldItem :: Type { .. } => {
321321 live. add_world_item ( resolve, item) ;
322322 continue ;
323323 }
@@ -359,7 +359,7 @@ impl<'a> ComponentWorld<'a> {
359359 // encoded and therefore unconditionally live here. Once encoding is
360360 // based on conditionally-live things then this should be removed.
361361 for ( _, item) in world. imports . iter ( ) {
362- if let WorldItem :: Type ( id ) = item {
362+ if let WorldItem :: Type { id , .. } = item {
363363 live. add_type_id ( resolve, * id) ;
364364 }
365365 }
@@ -450,7 +450,7 @@ impl<'a> ComponentWorld<'a> {
450450 let id = match item {
451451 WorldItem :: Function ( _) => continue ,
452452 WorldItem :: Interface { id, .. } => * id,
453- WorldItem :: Type ( _ ) => unreachable ! ( ) ,
453+ WorldItem :: Type { .. } => unreachable ! ( ) ,
454454 } ;
455455 let mut set = HashSet :: new ( ) ;
456456
0 commit comments