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 @@ -187,11 +187,10 @@ pub(crate) fn build_index<'tcx>(
187
187
lastpathid,
188
188
crate_paths,
189
189
) ;
190
- if let Some ( converted_associated_type) = converted_associated_type {
191
- * associated_type = converted_associated_type;
192
- } else {
190
+ let Some ( converted_associated_type) = converted_associated_type else {
193
191
return false ;
194
- }
192
+ } ;
193
+ * associated_type = converted_associated_type;
195
194
for constraint in constraints {
196
195
convert_render_type (
197
196
constraint,
@@ -537,15 +536,9 @@ pub(crate) fn get_function_type_for_search<'tcx>(
537
536
}
538
537
} ) ;
539
538
let ( mut inputs, mut output, where_clause) = match * item. kind {
540
- clean:: FunctionItem ( ref f) => {
539
+ clean:: FunctionItem ( ref f) | clean :: MethodItem ( ref f , _ ) | clean :: TyMethodItem ( ref f ) => {
541
540
get_fn_inputs_and_outputs ( f, tcx, impl_or_trait_generics, cache)
542
541
}
543
- clean:: MethodItem ( ref m, _) => {
544
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
545
- }
546
- clean:: TyMethodItem ( ref m) => {
547
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
548
- }
549
542
_ => return None ,
550
543
} ;
551
544
You can’t perform that action at this time.
0 commit comments