aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorYuta Yamaguchi2023-01-22 18:04:14 +0000
committerGitHub2023-01-22 18:04:14 +0000
commitc8d77cfdb5f3f6ad04e9ffc5de8de33a0594447a (patch)
tree25f383442d33c99de8b5216980c6993c142092aa /helix-view/src
parentd99a72053676658759ef6ae7531f432daabb025a (diff)
refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630)
Fixes https://github.com/helix-editor/helix/issues/5615
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/graphics.rs3
-rw-r--r--helix-view/src/keyboard.rs1
2 files changed, 0 insertions, 4 deletions
diff --git a/helix-view/src/graphics.rs b/helix-view/src/graphics.rs
index 9264c50f..a0b645fa 100644
--- a/helix-view/src/graphics.rs
+++ b/helix-view/src/graphics.rs
@@ -251,7 +251,6 @@ impl Rect {
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Color {
Reset,
Black,
@@ -353,7 +352,6 @@ bitflags! {
///
/// let m = Modifier::BOLD | Modifier::ITALIC;
/// ```
- #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Modifier: u16 {
const BOLD = 0b0000_0000_0001;
const DIM = 0b0000_0000_0010;
@@ -450,7 +448,6 @@ impl FromStr for Modifier {
/// );
/// ```
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Style {
pub fg: Option<Color>,
pub bg: Option<Color>,
diff --git a/helix-view/src/keyboard.rs b/helix-view/src/keyboard.rs
index cf673e11..04a9922a 100644
--- a/helix-view/src/keyboard.rs
+++ b/helix-view/src/keyboard.rs
@@ -2,7 +2,6 @@ use bitflags::bitflags;
bitflags! {
/// Represents key modifiers (shift, control, alt).
- #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct KeyModifiers: u8 {
const SHIFT = 0b0000_0001;
const CONTROL = 0b0000_0010;