Add PartialEq to Text

This commit is contained in:
Florian Dehau 2019-06-16 23:14:17 +02:00
parent fe0ddf6c83
commit 2a7eec816a

View file

@ -47,7 +47,7 @@ bitflags! {
}
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub enum Text<'b> {
Raw(Cow<'b, str>),
Styled(Cow<'b, str>, Style),