Run rustfmt

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This commit is contained in:
Ian Jackson 2021-07-20 16:12:11 +01:00 committed by Guillaume Gomez
parent 155b055478
commit 1bf8a839d3

View File

@ -459,7 +459,9 @@ impl Options {
}) })
.collect(), .collect(),
]; ];
let default_settings = default_settings.into_iter().flatten() let default_settings = default_settings
.into_iter()
.flatten()
.map( .map(
// The keys here become part of `data-` attribute names in the generated HTML. The // 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 // 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. // `getSettingValue` in `storage.js.`) Converting `-` to `_` is simple in JS.
// //
// The values will be HTML-escaped by the default Tera escaping. // The values will be HTML-escaped by the default Tera escaping.
|(k, v)| (k.replace('-', "_"), v) |(k, v)| (k.replace('-', "_"), v),
) )
.collect(); .collect();