@@ -251,7 +251,6 @@ impl Rect {
253#[derive(Debug, Clone, Copy, PartialEq, Eq)]
253#[derive(Debug, Clone, Copy, PartialEq, Eq)]
254−#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
255pub enum Color {
254pub enum Color {
@@ -353,7 +352,6 @@ bitflags! {
354 /// let m = Modifier::BOLD | Modifier::ITALIC;
353 /// let m = Modifier::BOLD | Modifier::ITALIC;
356− #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
357 pub struct Modifier: u16 {
355 pub struct Modifier: u16 {
358 const BOLD = 0b0000_0000_0001;
356 const BOLD = 0b0000_0000_0001;
359 const DIM = 0b0000_0000_0010;
357 const DIM = 0b0000_0000_0010;
@@ -450,7 +448,6 @@ impl FromStr for Modifier {
452#[derive(Debug, Clone, Copy, PartialEq, Eq)]
450#[derive(Debug, Clone, Copy, PartialEq, Eq)]
453−#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
454pub struct Style {
451pub struct Style {
455 pub fg: Option<Color>,
452 pub fg: Option<Color>,
456 pub bg: Option<Color>,
453 pub bg: Option<Color>,