1
Fork 0

rustdoc: Fix erroneous collapsing of second+ inherent impl.

This commit is contained in:
Vitaly _Vi Shukela 2018-02-01 17:07:43 +03:00
parent a3acd10297
commit 28efcfc083
No known key found for this signature in database
GPG key ID: C097221D6E03DF68

View file

@ -1745,8 +1745,9 @@
function autoCollapseAllImpls() {
// Automatically minimize all non-inherent impls
onEach(document.getElementsByClassName('impl'), function(n) {
if (n.id !== 'impl') {
// non-inherent impl
// inherent impl ids are like 'impl' or impl-<number>'
var inherent = (n.id.match(/^impl(?:-\d+)?$/) !== null);
if (!inherent) {
onEach(n.childNodes, function(m) {
if (hasClass(m, "collapse-toggle")) {
collapseDocs(m, "hide");