on master help sign in
refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630)

Fixes https://github.com/helix-editor/helix/issues/5615

commitc8d77cfdb5f3f6ad04e9ffc5de8de33a0594447a authorYuta Yamaguchi <yamaguchi7073xtt@gmail.com> dateMon 23 Jan 2023, 03:04 (4 years ago) parentd99a720
2 files changed−4
helix-view/src/graphics.rs−3 helix-view/src/keyboard.rs−1
helix-view/src/graphics.rs−3
@@ -251,7 +251,6 @@ impl Rect {
251251}
252252
253253#[derive(Debug, Clone, Copy, PartialEq, Eq)]
254−#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
255254pub enum Color {
256255 Reset,
257256 Black,
@@ -353,7 +352,6 @@ bitflags! {
353352 ///
354353 /// let m = Modifier::BOLD | Modifier::ITALIC;
355354 /// ```
356− #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
357355 pub struct Modifier: u16 {
358356 const BOLD = 0b0000_0000_0001;
359357 const DIM = 0b0000_0000_0010;
@@ -450,7 +448,6 @@ impl FromStr for Modifier {
450448/// );
451449/// ```
452450#[derive(Debug, Clone, Copy, PartialEq, Eq)]
453−#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
454451pub struct Style {
455452 pub fg: Option<Color>,
456453 pub bg: Option<Color>,
helix-view/src/keyboard.rs−1
@@ -2,7 +2,6 @@ use bitflags::bitflags;
22
33bitflags! {
44 /// Represents key modifiers (shift, control, alt).
5− #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
65 pub struct KeyModifiers: u8 {
76 const SHIFT = 0b0000_0001;
87 const CONTROL = 0b0000_0010;