From 4ff7d0d8249f6ff341563cbaeee67dd7f77422ad Mon Sep 17 00:00:00 2001 From: grovesNL Date: Mon, 24 Oct 2022 09:25:20 -0230 Subject: [PATCH] Add `Eq` and `PartialEq` derives to `Color` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2a07a48..683be88 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ pub use text_render::TextRenderer; /// The color to use when rendering text. #[repr(C)] -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub struct Color { /// The red component of the color. pub r: u8,