File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -730,6 +730,7 @@ fn test_gen() {
730
730
731
731
#[ derive( Serialize ) ]
732
732
#[ repr( packed) ]
733
+ #[ allow( dead_code) ]
733
734
struct Packed {
734
735
x : u8 ,
735
736
y : u16 ,
@@ -761,6 +762,7 @@ fn test_gen() {
761
762
}
762
763
763
764
#[ derive( Serialize ) ]
765
+ #[ allow( dead_code) ]
764
766
struct Struct {
765
767
#[ serde( serialize_with = "vec_first_element" ) ]
766
768
vec : Vec < Self > ,
Original file line number Diff line number Diff line change @@ -2234,24 +2234,28 @@ fn test_internally_tagged_newtype_variant_containing_unit_struct() {
2234
2234
fn test_packed_struct_can_derive_serialize ( ) {
2235
2235
#[ derive( Copy , Clone , Serialize ) ]
2236
2236
#[ repr( packed, C ) ]
2237
+ #[ allow( dead_code) ]
2237
2238
struct PackedC {
2238
2239
t : f32 ,
2239
2240
}
2240
2241
2241
2242
#[ derive( Copy , Clone , Serialize ) ]
2242
2243
#[ repr( C , packed) ]
2244
+ #[ allow( dead_code) ]
2243
2245
struct CPacked {
2244
2246
t : f32 ,
2245
2247
}
2246
2248
2247
2249
#[ derive( Copy , Clone , Serialize ) ]
2248
2250
#[ repr( C , packed( 2 ) ) ]
2251
+ #[ allow( dead_code) ]
2249
2252
struct CPacked2 {
2250
2253
t : f32 ,
2251
2254
}
2252
2255
2253
2256
#[ derive( Copy , Clone , Serialize ) ]
2254
2257
#[ repr( packed( 2 ) , C ) ]
2258
+ #[ allow( dead_code) ]
2255
2259
struct Packed2C {
2256
2260
t : f32 ,
2257
2261
}
You can’t perform that action at this time.
0 commit comments