Derive PartialEq and Eq for ContentStyle (#519)
This commit is contained in:
parent
6980fce8ec
commit
8f6ba34349
@ -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<Color>,
|
||||
|
Loading…
Reference in New Issue
Block a user