diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-07-20 16:12:11 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-07-21 19:54:27 +0200 |
| commit | 1bf8a839d32dfbc03c383319e463f3e1ab877646 (patch) | |
| tree | af92f4d130feda97778abd59a411b05dcc1af316 | |
| parent | 155b055478eead93f70aa51994e2c56da948cc40 (diff) | |
| download | rust-1bf8a839d32dfbc03c383319e463f3e1ab877646.tar.gz rust-1bf8a839d32dfbc03c383319e463f3e1ab877646.zip | |
Run rustfmt
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
| -rw-r--r-- | src/librustdoc/config.rs | 6 |
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(); |
