Skip to content

Commit 80bae28

Browse files
authored
Rollup merge of #91667 - GuillaumeGomez:fix-index-itemtypes, r=notriddle
Fix indent of itemTypes in search.js It has been bugging me for quite some time now. Finally took the time to clean it up a bit. r? ``@notriddle``
2 parents e63611a + edd8814 commit 80bae28

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

src/librustdoc/html/static/js/search.js

+28-26
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,34 @@
44
(function() {
55
// This mapping table should match the discriminants of
66
// `rustdoc::html::item_type::ItemType` type in Rust.
7-
var itemTypes = ["mod",
8-
"externcrate",
9-
"import",
10-
"struct",
11-
"enum",
12-
"fn",
13-
"type",
14-
"static",
15-
"trait",
16-
"impl",
17-
"tymethod",
18-
"method",
19-
"structfield",
20-
"variant",
21-
"macro",
22-
"primitive",
23-
"associatedtype",
24-
"constant",
25-
"associatedconstant",
26-
"union",
27-
"foreigntype",
28-
"keyword",
29-
"existential",
30-
"attr",
31-
"derive",
32-
"traitalias"];
7+
var itemTypes = [
8+
"mod",
9+
"externcrate",
10+
"import",
11+
"struct",
12+
"enum",
13+
"fn",
14+
"type",
15+
"static",
16+
"trait",
17+
"impl",
18+
"tymethod",
19+
"method",
20+
"structfield",
21+
"variant",
22+
"macro",
23+
"primitive",
24+
"associatedtype",
25+
"constant",
26+
"associatedconstant",
27+
"union",
28+
"foreigntype",
29+
"keyword",
30+
"existential",
31+
"attr",
32+
"derive",
33+
"traitalias",
34+
];
3335

3436
// used for special search precedence
3537
var TY_PRIMITIVE = itemTypes.indexOf("primitive");

0 commit comments

Comments
 (0)