rustdoc: Fix erroneous collapsing of second+ inherent impl.
This commit is contained in:
parent
a3acd10297
commit
28efcfc083
1 changed files with 3 additions and 2 deletions
|
@ -1745,8 +1745,9 @@
|
||||||
function autoCollapseAllImpls() {
|
function autoCollapseAllImpls() {
|
||||||
// Automatically minimize all non-inherent impls
|
// Automatically minimize all non-inherent impls
|
||||||
onEach(document.getElementsByClassName('impl'), function(n) {
|
onEach(document.getElementsByClassName('impl'), function(n) {
|
||||||
if (n.id !== 'impl') {
|
// inherent impl ids are like 'impl' or impl-<number>'
|
||||||
// non-inherent impl
|
var inherent = (n.id.match(/^impl(?:-\d+)?$/) !== null);
|
||||||
|
if (!inherent) {
|
||||||
onEach(n.childNodes, function(m) {
|
onEach(n.childNodes, function(m) {
|
||||||
if (hasClass(m, "collapse-toggle")) {
|
if (hasClass(m, "collapse-toggle")) {
|
||||||
collapseDocs(m, "hide");
|
collapseDocs(m, "hide");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue