Skip to content

Commit 611ceef

Browse files
authored
Rollup merge of rust-lang#49429 - GuillaumeGomez:fix-collapse-toggle-insertion, r=QuietMisdreavus
Fix collapse toggle insertions on impl with docs Just went through this one randomly... When an impl has docs, the collapse toggle isn't generated. This fixes it. r? @QuietMisdreavus
2 parents 294f041 + 8be26a2 commit 611ceef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/html/static/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,9 @@
18201820

18211821
var func = function(e) {
18221822
var next = e.nextElementSibling;
1823+
if (hasClass(e, 'impl') && next && hasClass(next, 'docblock')) {
1824+
next = next.nextElementSibling;
1825+
}
18231826
if (!next) {
18241827
return;
18251828
}

0 commit comments

Comments
 (0)