Commit eae795d7b7
Unsigned
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 | ||