refactor(helix-view): remove cfg_attr references a nonexistent feature (#5630)

Fixes https://github.com/helix-editor/helix/issues/5615
This commit is contained in:
Yuta Yamaguchi 2023-01-23 03:04:14 +09:00 committed by GitHub
parent d99a720536
commit c8d77cfdb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View file

@ -251,7 +251,6 @@ pub fn intersects(self, other: Rect) -> bool {
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Color {
Reset,
Black,
@ -353,7 +352,6 @@ fn from(style: UnderlineStyle) -> Self {
///
/// 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 @@ fn from_str(modifier: &str) -> Result<Self, Self::Err> {
/// );
/// ```
#[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>,

View file

@ -2,7 +2,6 @@
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;