@@ -60,7 +60,6 @@ fn normalize_hue(hue: f32) -> f32 {
60
60
61
61
/// A color with red, green, blue, and alpha components, in a byte each.
62
62
#[ derive( Clone , Copy , PartialEq , Debug ) ]
63
- #[ repr( C ) ]
64
63
pub struct RGBA {
65
64
/// The red component.
66
65
pub red : Option < u8 > ,
@@ -287,7 +286,6 @@ impl<'de> Deserialize<'de> for Hwb {
287
286
288
287
/// Color specified by lightness, a- and b-axis components.
289
288
#[ derive( Clone , Copy , PartialEq , Debug ) ]
290
- #[ repr( C ) ]
291
289
pub struct Lab {
292
290
/// The lightness component.
293
291
pub lightness : Option < f32 > ,
@@ -301,7 +299,6 @@ pub struct Lab {
301
299
302
300
/// Color specified by lightness, a- and b-axis components.
303
301
#[ derive( Clone , Copy , PartialEq , Debug ) ]
304
- #[ repr( C ) ]
305
302
pub struct Oklab {
306
303
/// The lightness component.
307
304
pub lightness : Option < f32 > ,
@@ -380,7 +377,6 @@ impl_lab_like!(Oklab, "oklab");
380
377
381
378
/// Color specified by lightness, chroma and hue components.
382
379
#[ derive( Clone , Copy , PartialEq , Debug ) ]
383
- #[ repr( C ) ]
384
380
pub struct Lch {
385
381
/// The lightness component.
386
382
pub lightness : Option < f32 > ,
@@ -394,7 +390,6 @@ pub struct Lch {
394
390
395
391
/// Color specified by lightness, chroma and hue components.
396
392
#[ derive( Clone , Copy , PartialEq , Debug ) ]
397
- #[ repr( C ) ]
398
393
pub struct Oklch {
399
394
/// The lightness component.
400
395
pub lightness : Option < f32 > ,
0 commit comments