about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-07-20 16:12:11 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-07-21 19:54:27 +0200
commit1bf8a839d32dfbc03c383319e463f3e1ab877646 (patch)
treeaf92f4d130feda97778abd59a411b05dcc1af316
parent155b055478eead93f70aa51994e2c56da948cc40 (diff)
downloadrust-1bf8a839d32dfbc03c383319e463f3e1ab877646.tar.gz
rust-1bf8a839d32dfbc03c383319e463f3e1ab877646.zip
Run rustfmt
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--src/librustdoc/config.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index cae68447815..abd1fd2bf39 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -459,7 +459,9 @@ impl Options {
                 })
                 .collect(),
         ];
-        let default_settings = default_settings.into_iter().flatten()
+        let default_settings = default_settings
+            .into_iter()
+            .flatten()
             .map(
                 // The keys here become part of `data-` attribute names in the generated HTML.  The
                 // browser does a strange mapping when converting them into attributes on the
@@ -479,7 +481,7 @@ impl Options {
                 // `getSettingValue` in `storage.js.`) Converting `-` to `_` is simple in JS.
                 //
                 // The values will be HTML-escaped by the default Tera escaping.
-                |(k, v)| (k.replace('-', "_"), v)
+                |(k, v)| (k.replace('-', "_"), v),
             )
             .collect();