File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed
program-libs/zero-copy-derive/src Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -396,21 +396,21 @@ mod tests {
396
396
& struct_fields,
397
397
meta_fields. is_empty ( ) ,
398
398
) ;
399
- let partial_eq_impl = partial_eq_impl:: generate_partial_eq_impl (
400
- name,
401
- & z_struct_name,
402
- & z_struct_meta_name,
403
- & meta_fields,
404
- & struct_fields,
405
- ) ;
399
+ // let partial_eq_impl = partial_eq_impl::generate_partial_eq_impl(
400
+ // name,
401
+ // &z_struct_name,
402
+ // &z_struct_meta_name,
403
+ // &meta_fields,
404
+ // &struct_fields,
405
+ // );
406
406
407
407
// Combine all implementations
408
408
let expanded = quote ! {
409
409
#meta_struct_def
410
410
#z_struct_def
411
411
#zero_copy_struct_inner_impl
412
412
#deserialize_impl
413
- #partial_eq_impl
413
+ // #partial_eq_impl
414
414
} ;
415
415
416
416
let result = expanded. to_string ( ) ;
@@ -1003,13 +1003,17 @@ mod tests {
1003
1003
& struct_fields,
1004
1004
meta_fields. is_empty ( ) ,
1005
1005
) ;
1006
- let partial_eq_impl = partial_eq_impl:: generate_partial_eq_impl (
1007
- name,
1008
- & z_struct_name,
1009
- & z_struct_meta_name,
1010
- & meta_fields,
1011
- & struct_fields,
1012
- ) ;
1006
+ let partial_eq_impl = if test_case. name != "OptionTypeStruct" {
1007
+ partial_eq_impl:: generate_partial_eq_impl (
1008
+ name,
1009
+ & z_struct_name,
1010
+ & z_struct_meta_name,
1011
+ & meta_fields,
1012
+ & struct_fields,
1013
+ )
1014
+ } else {
1015
+ quote ! { }
1016
+ } ;
1013
1017
1014
1018
// Combine all implementations
1015
1019
let expanded = quote ! {
You can’t perform that action at this time.
0 commit comments