File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1839,12 +1839,6 @@ fn clean_variant_data<'tcx>(
18391839 }
18401840}
18411841
1842- impl < ' tcx > Clean < ' tcx , Vec < Item > > for hir:: VariantData < ' tcx > {
1843- fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> Vec < Item > {
1844- self . fields ( ) . iter ( ) . map ( |x| clean_field ( x, cx) ) . collect ( )
1845- }
1846- }
1847-
18481842impl < ' tcx > Clean < ' tcx , Item > for ty:: VariantDef {
18491843 fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> Item {
18501844 let kind = match self . ctor_kind {
@@ -1868,7 +1862,9 @@ impl<'tcx> Clean<'tcx, Variant> for hir::VariantData<'tcx> {
18681862 fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> Variant {
18691863 match self {
18701864 hir:: VariantData :: Struct ( ..) => Variant :: Struct ( clean_variant_data ( self , cx) ) ,
1871- hir:: VariantData :: Tuple ( ..) => Variant :: Tuple ( self . clean ( cx) ) ,
1865+ hir:: VariantData :: Tuple ( ..) => {
1866+ Variant :: Tuple ( self . fields ( ) . iter ( ) . map ( |x| clean_field ( x, cx) ) . collect ( ) )
1867+ }
18721868 hir:: VariantData :: Unit ( ..) => Variant :: CLike ,
18731869 }
18741870 }
You can’t perform that action at this time.
0 commit comments