Skip to content

Commit 99ff7a7

Browse files
committed
Use #[deriving(Clone, Eq)] rather than two attributes.
1 parent e02f8ad commit 99ff7a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

color.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ mod color_data;
1515
pub type ColorFloat = c_float;
1616

1717

18-
#[deriving(Clone)]
19-
#[deriving(Eq)]
18+
#[deriving(Clone, Eq)]
2019
pub struct RGBA {
2120
// All in 0..1
2221
red: ColorFloat,
@@ -25,8 +24,7 @@ pub struct RGBA {
2524
alpha: ColorFloat,
2625
}
2726

28-
#[deriving(Clone)]
29-
#[deriving(Eq)]
27+
#[deriving(Clone, Eq)]
3028
pub enum Color {
3129
CurrentColor,
3230
RGBA(RGBA),

0 commit comments

Comments
 (0)