Derive Eq and PartialEq for Color

This commit is contained in:
ConnorSkees 2020-01-22 02:16:12 -05:00
parent 54aca3b84e
commit 87bf73aa47

View File

@ -1,7 +1,7 @@
use std::convert::TryFrom; use std::convert::TryFrom;
use std::fmt::{self, Display}; use std::fmt::{self, Display};
#[derive(Debug)] #[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum Color { pub enum Color {
AliceBlue, // = 0xF0F8FF, AliceBlue, // = 0xF0F8FF,
AntiqueWhite, // = 0xFAEBD7, AntiqueWhite, // = 0xFAEBD7,