File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1327,11 +1327,9 @@ function preLoadCss(cssUrl) {
1327
1327
*/
1328
1328
function showTooltip ( e ) {
1329
1329
const notable_ty = e . getAttribute ( "data-notable-ty" ) ;
1330
- // @ts -expect-error
1331
1330
if ( ! window . NOTABLE_TRAITS && notable_ty ) {
1332
1331
const data = document . getElementById ( "notable-traits-data" ) ;
1333
1332
if ( data ) {
1334
- // @ts -expect-error
1335
1333
window . NOTABLE_TRAITS = JSON . parse ( data . innerText ) ;
1336
1334
} else {
1337
1335
throw new Error ( "showTooltip() called with notable without any notable traits!" ) ;
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ declare global {
28
28
currentTheme: HTMLLinkElement | null ;
29
29
/** Generated in `render/context.rs` */
30
30
SIDEBAR_ITEMS?: { [ key : string ] : string [ ] } ;
31
+ /** Notable trait data */
32
+ NOTABLE_TRAITS?: { [ key : string ] : string } ;
31
33
/** Used by the popover tooltip code. */
32
34
RUSTDOC_TOOLTIP_HOVER_MS: number ;
33
35
/** Used by the popover tooltip code. */
You can’t perform that action at this time.
0 commit comments