Skip to content
Browse files

Revert "Don't generate minification variable if minification disabled"

Fixes #59157

This reverts commit b5ae4d5.
  • Loading branch information...
Manishearth committed Mar 13, 2019
1 parent aa97448 commit c37dab7df82e38788648044017ba6dc48c240776
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/librustdoc/html/
@@ -1117,11 +1117,7 @@ themePicker.onblur = handleThemeButtonsBlur;
// with rustdoc running in parallel.
let mut w = try_err!(File::create(&dst), &dst);
if options.enable_minification {
try_err!(writeln!(&mut w, "var N=null,E=\"\",T=\"t\",U=\"u\",searchIndex={{}};"), &dst);
} else {
try_err!(writeln!(&mut w, "var searchIndex={{}};"), &dst);
try_err!(writeln!(&mut w, "var N=null,E=\"\",T=\"t\",U=\"u\",searchIndex={{}};"), &dst);
try_err!(write_minify_replacer(&mut w,
&format!("{}\n{}", variables.join(""), all_indexes.join("\n")),

0 comments on commit c37dab7

Please sign in to comment.
You can’t perform that action at this time.