We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dc0c5 commit 827047cCopy full SHA for 827047c
src/librustdoc/html/static/main.js
@@ -1991,8 +1991,11 @@
1991
}
1992
};
1993
if (getCurrentValue('rustdoc-trait-implementations') !== "false") {
1994
- onEach(document.getElementById('implementations-list')
1995
- .getElementsByClassName("collapse-toggle"), collapser);
+ var impl_list = document.getElementById('implementations-list');
+
1996
+ if (impl_list !== null) {
1997
+ onEach(impl_list.getElementsByClassName("collapse-toggle"), collapser);
1998
+ }
1999
2000
if (getCurrentValue('rustdoc-method-docs') !== "false") {
2001
var implItems = document.getElementsByClassName('impl-items');
0 commit comments