File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1884,7 +1884,8 @@ impl<'tcx> Clean<'tcx, GenericArgs> for hir::GenericArgs<'tcx> {
1884
1884
} )
1885
1885
. collect :: < Vec < _ > > ( )
1886
1886
. into ( ) ;
1887
- let bindings = self . bindings . iter ( ) . map ( |x| x. clean ( cx) ) . collect :: < Vec < _ > > ( ) . into ( ) ;
1887
+ let bindings =
1888
+ self . bindings . iter ( ) . map ( |x| clean_type_binding ( x, cx) ) . collect :: < Vec < _ > > ( ) . into ( ) ;
1888
1889
GenericArgs :: AngleBracketed { args, bindings }
1889
1890
}
1890
1891
}
@@ -2250,12 +2251,13 @@ fn clean_maybe_renamed_foreign_item<'tcx>(
2250
2251
} )
2251
2252
}
2252
2253
2253
- impl < ' tcx > Clean < ' tcx , TypeBinding > for hir:: TypeBinding < ' tcx > {
2254
- fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> TypeBinding {
2255
- TypeBinding {
2256
- assoc : PathSegment { name : self . ident . name , args : self . gen_args . clean ( cx) } ,
2257
- kind : self . kind . clean ( cx) ,
2258
- }
2254
+ fn clean_type_binding < ' tcx > (
2255
+ type_binding : & hir:: TypeBinding < ' tcx > ,
2256
+ cx : & mut DocContext < ' tcx > ,
2257
+ ) -> TypeBinding {
2258
+ TypeBinding {
2259
+ assoc : PathSegment { name : type_binding. ident . name , args : type_binding. gen_args . clean ( cx) } ,
2260
+ kind : type_binding. kind . clean ( cx) ,
2259
2261
}
2260
2262
}
2261
2263
You can’t perform that action at this time.
0 commit comments