File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ impl<'a> CodeGenerator<'a> {
234
234
self . push_indent ( ) ;
235
235
self . buf
236
236
. push_str ( "#[allow(clippy::derive_partial_eq_without_eq)]\n " ) ;
237
+ self . push_indent ( ) ;
237
238
self . buf . push_str ( & format ! (
238
239
"#[derive(Clone, {}PartialEq, {}::Message)]\n " ,
239
240
if self . message_graph. can_message_derive_copy( & fq_message_name) {
@@ -670,6 +671,8 @@ impl<'a> CodeGenerator<'a> {
670
671
self . message_graph
671
672
. can_field_derive_copy ( fq_message_name, & field. descriptor )
672
673
} ) ;
674
+
675
+ self . push_indent ( ) ;
673
676
self . buf . push_str ( & format ! (
674
677
"#[derive(Clone, {}PartialEq, {}::Oneof)]\n " ,
675
678
if can_oneof_derive_copy { "Copy, " } else { "" } ,
@@ -840,7 +843,7 @@ impl<'a> CodeGenerator<'a> {
840
843
. map ( |proto_name| format ! ( "proto_name = \" {proto_name}\" " ) )
841
844
. join ( ", " ) ;
842
845
843
- self . buf . push_str ( & format ! ( "#[prost(json({names}))]" ) ) ;
846
+ self . buf . push_str ( & format ! ( "#[prost(json({names}))]\n " ) ) ;
844
847
} ;
845
848
846
849
self . append_field_attributes ( & fq_proto_enum_name, variant. proto_name ) ;
You can’t perform that action at this time.
0 commit comments