diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-05-16 07:34:03 +0300 |
---|---|---|
committer | Kirill Chibisov <contact@kchibisov.com> | 2023-05-17 08:36:41 +0300 |
commit | b1feba6916f1ccf57b0a76914946c112ec2195a2 (patch) | |
tree | fe2733e74dae013dcb4fdb22b7f933662901c685 /alacritty_terminal/src/term/cell.rs | |
parent | a6488a3e5edf1ac25c522e037c75b9d17e6bc3c6 (diff) | |
download | alacritty-b1feba6916f1ccf57b0a76914946c112ec2195a2.tar.gz alacritty-b1feba6916f1ccf57b0a76914946c112ec2195a2.zip |
Update bitflags to 2.2.1
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 3e7d09e5..5253ede1 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -9,7 +9,7 @@ use crate::grid::{self, GridCell}; use crate::index::Column; bitflags! { - #[derive(Serialize, Deserialize)] + #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct Flags: u16 { const INVERSE = 0b0000_0000_0000_0001; const BOLD = 0b0000_0000_0000_0010; @@ -28,9 +28,9 @@ bitflags! { const UNDERCURL = 0b0001_0000_0000_0000; const DOTTED_UNDERLINE = 0b0010_0000_0000_0000; const DASHED_UNDERLINE = 0b0100_0000_0000_0000; - const ALL_UNDERLINES = Self::UNDERLINE.bits | Self::DOUBLE_UNDERLINE.bits - | Self::UNDERCURL.bits | Self::DOTTED_UNDERLINE.bits - | Self::DASHED_UNDERLINE.bits; + const ALL_UNDERLINES = Self::UNDERLINE.bits() | Self::DOUBLE_UNDERLINE.bits() + | Self::UNDERCURL.bits() | Self::DOTTED_UNDERLINE.bits() + | Self::DASHED_UNDERLINE.bits(); } } |