Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use #[deriving(Clone, Eq)] rather than two attributes.
  • Loading branch information
SimonSapin committed Sep 3, 2013
commit 99ff7a76a8a4f48a81165f26aab4a2dbd8e37c7f
6 changes: 2 additions & 4 deletions color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ mod color_data;
pub type ColorFloat = c_float;


#[deriving(Clone)]
#[deriving(Eq)]
#[deriving(Clone, Eq)]
pub struct RGBA {
// All in 0..1
red: ColorFloat,
Expand All @@ -25,8 +24,7 @@ pub struct RGBA {
alpha: ColorFloat,
}

#[deriving(Clone)]
#[deriving(Eq)]
#[deriving(Clone, Eq)]
pub enum Color {
CurrentColor,
RGBA(RGBA),
Expand Down