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,
@@ -538,15 +537,9 @@ pub(crate) fn get_function_type_for_search<'tcx>(
538
537
}
539
538
} ) ;
540
539
let ( mut inputs, mut output, where_clause) = match * item. kind {
541
- clean:: FunctionItem ( ref f) => {
540
+ clean:: FunctionItem ( ref f) | clean :: MethodItem ( ref f , _ ) | clean :: TyMethodItem ( ref f ) => {
542
541
get_fn_inputs_and_outputs ( f, tcx, impl_or_trait_generics, cache)
543
542
}
544
- clean:: MethodItem ( ref m, _) => {
545
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
546
- }
547
- clean:: TyMethodItem ( ref m) => {
548
- get_fn_inputs_and_outputs ( m, tcx, impl_or_trait_generics, cache)
549
- }
550
543
_ => return None ,
551
544
} ;
552
545
You can’t perform that action at this time.
0 commit comments