Skip to content

Commit

Permalink
Merge pull request #490 from extrawurst/bitflags-update
Browse files Browse the repository at this point in the history
update bitflags
  • Loading branch information
trishume committed Sep 2, 2023
2 parents b7531a8 + b29ab1d commit e9819fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ onig = { version = "6.0", optional = true, default-features = false }
fancy-regex = { version = "0.11", optional = true }
walkdir = "2.0"
regex-syntax = { version = "0.7", optional = true }
bitflags = "1.0.4"
bitflags = {version = "2.4", features = ["serde"] }
plist = { version = "1.3", optional = true }
bincode = { version = "1.0", optional = true }
flate2 = { version = "1.0", optional = true }
Expand Down
3 changes: 1 addition & 2 deletions src/highlighting/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl std::fmt::Debug for Color {

bitflags! {
/// The color-independent styling of a font - i.e. bold, italicized, and/or underlined
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Debug, Hash, Eq, PartialEq, Clone, Copy)]
pub struct FontStyle: u8 {
/// Bold font style
const BOLD = 1;
Expand All @@ -79,7 +79,6 @@ bitflags! {
}
}


impl Color {
/// The color black (`#000000`)
pub const BLACK: Color = Color {
Expand Down

0 comments on commit e9819fb

Please sign in to comment.