File tree 1 file changed +3
-7
lines changed
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>(
1839
1839
}
1840
1840
}
1841
1841
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
-
1848
1842
impl < ' tcx > Clean < ' tcx , Item > for ty:: VariantDef {
1849
1843
fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> Item {
1850
1844
let kind = match self . ctor_kind {
@@ -1868,7 +1862,9 @@ impl<'tcx> Clean<'tcx, Variant> for hir::VariantData<'tcx> {
1868
1862
fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> Variant {
1869
1863
match self {
1870
1864
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
+ }
1872
1868
hir:: VariantData :: Unit ( ..) => Variant :: CLike ,
1873
1869
}
1874
1870
}
You can’t perform that action at this time.
0 commit comments