Skip to content

Commit e02f8ad

Browse files
committed
Add Clone and Eq on cssparser::Color.
1 parent c3985bf commit e02f8ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

color.rs

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

1717

18+
#[deriving(Clone)]
19+
#[deriving(Eq)]
1820
pub struct RGBA {
1921
// All in 0..1
2022
red: ColorFloat,
@@ -23,6 +25,8 @@ pub struct RGBA {
2325
alpha: ColorFloat,
2426
}
2527

28+
#[deriving(Clone)]
29+
#[deriving(Eq)]
2630
pub enum Color {
2731
CurrentColor,
2832
RGBA(RGBA),

0 commit comments

Comments
 (0)