about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-13 21:21:03 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-13 21:21:03 +0100
commit48a3bcd860f995f7fb476b9bb4ec6b67abc7a049 (patch)
tree4f37ae37fb3883d198c34763ebfe72a3873f36d2 /src/librustdoc/html
parent4b9f5cc4c10a161047475cb9bbe02c4fda57fb07 (diff)
crates.js should use root_path and not static_root_path
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index ab65c71d7d1..a717b304566 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -58,7 +58,7 @@ crate fn render<T: Print, S: Print>(
     {style_files}\
     <script id=\"default-settings\"{default_settings}></script>\
     <script src=\"{static_root_path}storage{suffix}.js\"></script>\
-    <script src=\"{static_root_path}crates{suffix}.js\"></script>\
+    <script src=\"{root_path}crates{suffix}.js\"></script>\
     <noscript><link rel=\"stylesheet\" href=\"{static_root_path}noscript{suffix}.css\"></noscript>\
     {css_extension}\
     {favicon}\