Fix indent of itemTypes in search.js
This commit is contained in:
parent
87dce6e8df
commit
edd881474b
1 changed files with 28 additions and 26 deletions
|
@ -4,32 +4,34 @@
|
||||||
(function() {
|
(function() {
|
||||||
// This mapping table should match the discriminants of
|
// This mapping table should match the discriminants of
|
||||||
// `rustdoc::html::item_type::ItemType` type in Rust.
|
// `rustdoc::html::item_type::ItemType` type in Rust.
|
||||||
var itemTypes = ["mod",
|
var itemTypes = [
|
||||||
"externcrate",
|
"mod",
|
||||||
"import",
|
"externcrate",
|
||||||
"struct",
|
"import",
|
||||||
"enum",
|
"struct",
|
||||||
"fn",
|
"enum",
|
||||||
"type",
|
"fn",
|
||||||
"static",
|
"type",
|
||||||
"trait",
|
"static",
|
||||||
"impl",
|
"trait",
|
||||||
"tymethod",
|
"impl",
|
||||||
"method",
|
"tymethod",
|
||||||
"structfield",
|
"method",
|
||||||
"variant",
|
"structfield",
|
||||||
"macro",
|
"variant",
|
||||||
"primitive",
|
"macro",
|
||||||
"associatedtype",
|
"primitive",
|
||||||
"constant",
|
"associatedtype",
|
||||||
"associatedconstant",
|
"constant",
|
||||||
"union",
|
"associatedconstant",
|
||||||
"foreigntype",
|
"union",
|
||||||
"keyword",
|
"foreigntype",
|
||||||
"existential",
|
"keyword",
|
||||||
"attr",
|
"existential",
|
||||||
"derive",
|
"attr",
|
||||||
"traitalias"];
|
"derive",
|
||||||
|
"traitalias",
|
||||||
|
];
|
||||||
|
|
||||||
// used for special search precedence
|
// used for special search precedence
|
||||||
var TY_PRIMITIVE = itemTypes.indexOf("primitive");
|
var TY_PRIMITIVE = itemTypes.indexOf("primitive");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue