rustdoc: Fix erroneous collapsing of second+ inherent impl.
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user