on master help sign in
refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630)
c8d77cfYuta Yamaguchi
helix-view/src/graphics.rs−3
@@ -251,7 +251,6 @@ impl Rect {
251}
251}
252
252
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 {
256 Reset,
255 Reset,
257 Black,
256 Black,
@@ -353,7 +352,6 @@ bitflags! {
353 ///
352 ///
354 /// let m = Modifier::BOLD | Modifier::ITALIC;
353 /// let m = Modifier::BOLD | Modifier::ITALIC;
355 /// ```
354 /// ```
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 {
450/// );
448/// );
451/// ```
449/// ```
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>,
helix-view/src/keyboard.rs−1
@@ -2,7 +2,6 @@ use bitflags::bitflags;
2
2
3bitflags! {
3bitflags! {
4 /// Represents key modifiers (shift, control, alt).
4 /// Represents key modifiers (shift, control, alt).
5− #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
6 pub struct KeyModifiers: u8 {
5 pub struct KeyModifiers: u8 {
7 const SHIFT = 0b0000_0001;
6 const SHIFT = 0b0000_0001;
8 const CONTROL = 0b0000_0010;
7 const CONTROL = 0b0000_0010;