File tree 1 file changed +4
-4
lines changed
src/librustdoc/html/static
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1073,13 +1073,13 @@ function hideThemeButtonState() {
1073
1073
}
1074
1074
}
1075
1075
1076
- function collapseNonInherent ( e , collapse ) {
1076
+ function collapseNonInherent ( e ) {
1077
1077
// inherent impl ids are like "impl" or impl-<number>'.
1078
1078
// they will never be hidden by default.
1079
1079
var n = e . parentElement ;
1080
1080
if ( n . id . match ( / ^ i m p l (?: - \d + ) ? $ / ) === null ) {
1081
1081
// Automatically minimize all non-inherent impls
1082
- if ( collapse || hasClass ( n , "impl" ) ) {
1082
+ if ( hasClass ( n , "impl" ) ) {
1083
1083
collapseDocs ( e , "hide" ) ;
1084
1084
}
1085
1085
}
@@ -1149,14 +1149,14 @@ function hideThemeButtonState() {
1149
1149
var impl_list = document . getElementById ( "trait-implementations-list" ) ;
1150
1150
if ( impl_list !== null ) {
1151
1151
onEachLazy ( impl_list . getElementsByClassName ( "collapse-toggle" ) , function ( e ) {
1152
- collapseNonInherent ( e , collapse ) ;
1152
+ collapseNonInherent ( e ) ;
1153
1153
} ) ;
1154
1154
}
1155
1155
1156
1156
var blanket_list = document . getElementById ( "blanket-implementations-list" ) ;
1157
1157
if ( blanket_list !== null ) {
1158
1158
onEachLazy ( blanket_list . getElementsByClassName ( "collapse-toggle" ) , function ( e ) {
1159
- collapseNonInherent ( e , collapse ) ;
1159
+ collapseNonInherent ( e ) ;
1160
1160
} ) ;
1161
1161
}
1162
1162
You can’t perform that action at this time.
0 commit comments