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 {
17 IntegerOptionSettings::new(stringify!($option_name)) 17 IntegerOptionSettings::new(stringify!($option_name))
18 .description($description) 18 .description($description)
19 .default_value(<$out_type>::default() as i32) 19 .default_value(<$out_type>::default() as i32)
20 .string_values(<$out_type>::VARIANTS.iter().map(|v| v.to_string()).collect::<Vec<String>>()); 20 .string_values(
21 21 <$out_type>::VARIANTS
22 .iter()
23 .map(|v| v.to_string())
24 .collect::<Vec<String>>(),
25 );
22 }; 26 };
23} 27}
24 28