@@ -2734,18 +2734,19 @@ fn make_item_keywords(it: &clean::Item) -> String {
2734
2734
2735
2735
fn get_index_search_type ( item : & clean:: Item ,
2736
2736
parent : Option < String > ) -> Option < IndexItemFunctionType > {
2737
- let decl = match item. inner {
2738
- clean:: FunctionItem ( ref f) => & f. decl ,
2739
- clean:: MethodItem ( ref m) => & m. decl ,
2740
- clean:: TyMethodItem ( ref m) => & m. decl ,
2737
+ let ( decl, selfty ) = match item. inner {
2738
+ clean:: FunctionItem ( ref f) => ( & f. decl , None ) ,
2739
+ clean:: MethodItem ( ref m) => ( & m. decl , Some ( & m . self_ ) ) ,
2740
+ clean:: TyMethodItem ( ref m) => ( & m. decl , Some ( & m . self_ ) ) ,
2741
2741
_ => return None
2742
2742
} ;
2743
2743
2744
2744
let mut inputs = Vec :: new ( ) ;
2745
2745
2746
2746
// Consider `self` an argument as well.
2747
- if let Some ( name) = parent {
2748
- inputs. push ( Type { name : Some ( name. to_ascii_lowercase ( ) ) } ) ;
2747
+ match parent. and_then ( |p| selfty. map ( |s| ( p, s) ) ) {
2748
+ Some ( ( _, & clean:: SelfStatic ) ) | None => ( ) ,
2749
+ Some ( ( name, _) ) => inputs. push ( Type { name : Some ( name. to_ascii_lowercase ( ) ) } ) ,
2749
2750
}
2750
2751
2751
2752
inputs. extend ( & mut decl. inputs . values . iter ( ) . map ( |arg| {
0 commit comments