]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/render/mod.rs
rustdoc: Provide a way to set the default settings from Rust code
[rust.git] / src / librustdoc / html / render / mod.rs
index 91e12e3a1351685cab05556cf1772e73f65de906..0621eafd913474a5ff1181cc848621caf3aa5345 100644 (file)
@@ -392,6 +392,7 @@ fn init(
             playground_url,
             sort_modules_alphabetically,
             themes: style_files,
+            default_settings,
             extension_css,
             resource_suffix,
             static_root_path,
@@ -415,6 +416,7 @@ fn init(
             logo: String::new(),
             favicon: String::new(),
             external_html,
+            default_settings,
             krate: krate.name.clone(),
             css_file_extension: extension_css,
             generate_search_filter,
@@ -2384,7 +2386,7 @@ fn item_static(w: &mut Buffer, cx: &Context, it: &clean::Item, s: &clean::Static
     render_attributes(w, it, false);
     write!(
         w,
-        "{vis}static {mutability} {name}: {typ}</pre>",
+        "{vis}static {mutability}{name}: {typ}</pre>",
         vis = it.visibility.print_with_space(),
         mutability = s.mutability.print_with_space(),
         name = it.name.as_ref().unwrap(),