File tree 1 file changed +4
-11
lines changed
src/librustdoc/html/render
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,10 @@ pub(crate) fn build_index<'tcx>(
185
185
lastpathid,
186
186
crate_paths,
187
187
) ;
188
- if let Some ( converted_associated_type) = converted_associated_type {
189
- * associated_type = converted_associated_type;
190
- } else {
188
+ let Some ( converted_associated_type) = converted_associated_type else {
191
189
return false ;
192
- }
190
+ } ;
191
+ * associated_type = converted_associated_type;
193
192
for constraint in constraints {
194
193
convert_render_type (
195
194
constraint,
@@ -508,15 +507,9 @@ pub(crate) fn get_function_type_for_search<'tcx>(
508
507
}
509
508
} ) ;
510
509
let ( mut inputs, mut output, where_clause) = match * item. kind {
511
- clean:: FunctionItem ( ref f) => {
510
+ clean:: FunctionItem ( ref f) | clean :: MethodItem ( ref f , _ ) | clean :: TyMethodItem ( ref f ) => {
512
511
get_fn_inputs_and_outputs ( f, tcx, impl_or_trait_generics, cache)
513
512
}
514
- clean:: MethodItem ( ref m, _) => {
515
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
516
- }
517
- clean:: TyMethodItem ( ref m) => {
518
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
519
- }
520
513
_ => return None ,
521
514
} ;
522
515
You can’t perform that action at this time.
0 commit comments