1
Fork 0

Fix indent of itemTypes in search.js

This commit is contained in:
Guillaume Gomez 2021-12-08 17:31:56 +01:00
parent 87dce6e8df
commit edd881474b

View file

@ -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");