@@ -21,55 +21,22 @@ fn main() -> Result<()> {
2121
2222 let mut config = prost_build:: Config :: new ( ) ;
2323
24- config . type_attribute (
24+ [
2525 "confidence.flags.admin.v1.ClientResolveInfo.EvaluationContextSchemaInstance" ,
26- "#[derive(Eq, PartialOrd, Ord)]" ,
27- ) ;
28-
29- config. type_attribute (
3026 "confidence.flags.admin.v1.ContextFieldSemanticType" ,
31- "#[derive(Eq, PartialOrd, Ord)]" ,
32- ) ;
33-
34- config. type_attribute (
3527 "confidence.flags.admin.v1.ContextFieldSemanticType.type" ,
36- "#[derive(Eq, Ord, PartialOrd)]" ,
37- ) ;
38-
39- config. type_attribute (
4028 "confidence.flags.admin.v1.ContextFieldSemanticType.VersionSemanticType" ,
41- "#[derive(Eq, PartialOrd, Ord)]" ,
42- ) ;
43-
44- config. type_attribute (
4529 "confidence.flags.admin.v1.ContextFieldSemanticType.CountrySemanticType" ,
46- "#[derive(Eq, PartialOrd, Ord)]" ,
47- ) ;
48-
49- config. type_attribute (
5030 "confidence.flags.admin.v1.ContextFieldSemanticType.TimestampSemanticType" ,
51- "#[derive(Eq, PartialOrd, Ord)]" ,
52- ) ;
53-
54- config. type_attribute (
5531 "confidence.flags.admin.v1.ContextFieldSemanticType.DateSemanticType" ,
56- "#[derive(Eq, PartialOrd, Ord)]" ,
57- ) ;
58-
59- config. type_attribute (
6032 "confidence.flags.admin.v1.ContextFieldSemanticType.EntitySemanticType" ,
61- "#[derive(Eq, PartialOrd, Ord)]" ,
62- ) ;
63-
64- config. type_attribute (
6533 "confidence.flags.admin.v1.ContextFieldSemanticType.EnumSemanticType" ,
66- "#[derive(Eq, PartialOrd, Ord)]" ,
67- ) ;
68-
69- config. type_attribute (
7034 "confidence.flags.admin.v1.ContextFieldSemanticType.EnumSemanticType.EnumValue" ,
71- "#[derive(Eq, PartialOrd, Ord)]" ,
72- ) ;
35+ ]
36+ . iter ( )
37+ . for_each ( |& p| {
38+ config. type_attribute ( p, "#[derive(Eq, PartialOrd, Ord)]" ) ;
39+ } ) ;
7340
7441 config
7542 . file_descriptor_set_path ( & descriptor_path)
0 commit comments