@@ -39,7 +39,7 @@ impl From<clean::Item> for Item {
3939 links : attrs
4040 . links
4141 . into_iter ( )
42- . filter_map ( |( a , b , _ ) | b . map ( |b | ( a , b . into ( ) ) ) )
42+ . filter_map ( |clean :: ItemLink { link , did , .. } | did . map ( |did | ( link , did . into ( ) ) ) )
4343 . collect ( ) ,
4444 attrs : attrs
4545 . other_attrs
@@ -173,7 +173,7 @@ impl From<clean::ItemEnum> for ItemEnum {
173173 ForeignStaticItem ( s) => ItemEnum :: StaticItem ( s. into ( ) ) ,
174174 ForeignTypeItem => ItemEnum :: ForeignTypeItem ,
175175 TypedefItem ( t, _) => ItemEnum :: TypedefItem ( t. into ( ) ) ,
176- OpaqueTyItem ( t, _ ) => ItemEnum :: OpaqueTyItem ( t. into ( ) ) ,
176+ OpaqueTyItem ( t) => ItemEnum :: OpaqueTyItem ( t. into ( ) ) ,
177177 ConstantItem ( c) => ItemEnum :: ConstantItem ( c. into ( ) ) ,
178178 MacroItem ( m) => ItemEnum :: MacroItem ( m. source ) ,
179179 ProcMacroItem ( m) => ItemEnum :: ProcMacroItem ( m. into ( ) ) ,
@@ -502,18 +502,18 @@ impl From<clean::Variant> for Variant {
502502
503503impl From < clean:: Import > for Import {
504504 fn from ( import : clean:: Import ) -> Self {
505- use clean:: Import :: * ;
506- match import {
507- Simple ( s, i ) => Import {
508- source : i . path . whole_name ( ) ,
505+ use clean:: ImportKind :: * ;
506+ match import. kind {
507+ Simple ( s) => Import {
508+ source : import . source . path . whole_name ( ) ,
509509 name : s,
510- id : i . did . map ( Into :: into) ,
510+ id : import . source . did . map ( Into :: into) ,
511511 glob : false ,
512512 } ,
513- Glob ( i ) => Import {
514- source : i . path . whole_name ( ) ,
515- name : i . path . last_name ( ) . to_string ( ) ,
516- id : i . did . map ( Into :: into) ,
513+ Glob => Import {
514+ source : import . source . path . whole_name ( ) ,
515+ name : import . source . path . last_name ( ) . to_string ( ) ,
516+ id : import . source . did . map ( Into :: into) ,
517517 glob : true ,
518518 } ,
519519 }
0 commit comments