From 8f6ba34349314b474d6e4703df779282d5065299 Mon Sep 17 00:00:00 2001 From: AlephAlpha Date: Sat, 5 Dec 2020 18:07:16 +0800 Subject: [PATCH] Derive PartialEq and Eq for ContentStyle (#519) --- src/style/content_style.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style/content_style.rs b/src/style/content_style.rs index be472e2..41d52b4 100644 --- a/src/style/content_style.rs +++ b/src/style/content_style.rs @@ -5,7 +5,7 @@ use std::fmt::Display; use crate::style::{Attribute, Attributes, Color, StyledContent}; /// The style that can be put on content. -#[derive(Debug, Copy, Clone, Default)] +#[derive(Debug, Copy, Clone, Default, PartialEq, Eq)] pub struct ContentStyle { /// The foreground color. pub foreground_color: Option,