Skip to content

Commit 75b428f

Browse files
committed
Merge pull request #13 from SimonSapin/master
Add Clone and Eq on cssparser::Color.
2 parents 38d1caa + 99ff7a7 commit 75b428f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

color.rs

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

1717

18+
#[deriving(Clone, Eq)]
1819
pub struct RGBA {
1920
// All in 0..1
2021
red: ColorFloat,
@@ -23,6 +24,7 @@ pub struct RGBA {
2324
alpha: ColorFloat,
2425
}
2526

27+
#[deriving(Clone, Eq)]
2628
pub enum Color {
2729
CurrentColor,
2830
RGBA(RGBA),

0 commit comments

Comments
 (0)