Commit eae795d7b7

eae795d7b7c30e0899a80cb4403d8eeec5d56afe

parent: 50a972db6f

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-07-01 15:47 UTC

config_macros: Format the file.

Layout: unified · split

src/config_macros.rs +6 −2
@@ -17,8 +17,12 @@ macro_rules! option_settings {
1717 IntegerOptionSettings::new(stringify!($option_name))
1818 .description($description)
1919 .default_value(<$out_type>::default() as i32)
20 .string_values(<$out_type>::VARIANTS.iter().map(|v| v.to_string()).collect::<Vec<String>>());
21
20 .string_values(
21 <$out_type>::VARIANTS
22 .iter()
23 .map(|v| v.to_string())
24 .collect::<Vec<String>>(),
25 );
2226 };
2327}
2428