Skip to content

Commit 1bf8a83

Browse files
ijacksonGuillaumeGomez
authored andcommitted
Run rustfmt
Signed-off-by: Ian Jackson <[email protected]>
1 parent 155b055 commit 1bf8a83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/config.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,9 @@ impl Options {
459459
})
460460
.collect(),
461461
];
462-
let default_settings = default_settings.into_iter().flatten()
462+
let default_settings = default_settings
463+
.into_iter()
464+
.flatten()
463465
.map(
464466
// The keys here become part of `data-` attribute names in the generated HTML. The
465467
// browser does a strange mapping when converting them into attributes on the
@@ -479,7 +481,7 @@ impl Options {
479481
// `getSettingValue` in `storage.js.`) Converting `-` to `_` is simple in JS.
480482
//
481483
// The values will be HTML-escaped by the default Tera escaping.
482-
|(k, v)| (k.replace('-', "_"), v)
484+
|(k, v)| (k.replace('-', "_"), v),
483485
)
484486
.collect();
485487

0 commit comments

Comments
 (0)