Derive PartialEq and Eq for ContentStyle (#519)

This commit is contained in:
AlephAlpha 2020-12-05 18:07:16 +08:00 committed by GitHub
parent 6980fce8ec
commit 8f6ba34349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ use std::fmt::Display;
use crate::style::{Attribute, Attributes, Color, StyledContent}; use crate::style::{Attribute, Attributes, Color, StyledContent};
/// The style that can be put on content. /// The style that can be put on content.
#[derive(Debug, Copy, Clone, Default)] #[derive(Debug, Copy, Clone, Default, PartialEq, Eq)]
pub struct ContentStyle { pub struct ContentStyle {
/// The foreground color. /// The foreground color.
pub foreground_color: Option<Color>, pub foreground_color: Option<Color>,