From bea99a5da6acaa30cf27cd8d6268527ff24ee77e Mon Sep 17 00:00:00 2001 From: r00ster Date: Fri, 30 Apr 2021 12:06:15 +0200 Subject: [PATCH] `copy_path` -> `window.copy_path` + add semicolon --- src/librustdoc/html/static/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index ed590e17af044..e81eaca8f0e40 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -1493,7 +1493,7 @@ function hideThemeButtonState() { (function () { var reset_button_timeout = null; - function copy_path(but) { + window.copy_path = function(but) { var parent = but.parentElement; var path = []; @@ -1527,5 +1527,5 @@ function hideThemeButtonState() { } reset_button_timeout = window.setTimeout(reset_button, 1000); - } + }; }());