Skip to content

Commit d45f322

Browse files
authored
Bump bitflags to v2.6 (#309)
This matches the version servo requires. Changelog for 2.0: https://github.com/bitflags/bitflags/releases/tag/2.0.0 Affecting us: - less traits are autoderived. We manually add the derives we need. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
1 parent 4a3cd70 commit d45f322

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sm-raw-window-handle-05 = ["dep:rwh_05"]
3232
sm-raw-window-handle-06 = ["dep:rwh_06"]
3333

3434
[dependencies]
35-
bitflags = "1.1"
35+
bitflags = "2.6"
3636
euclid = "0.22"
3737
fnv = { version = "1.0", optional = true }
3838
lazy_static = "1"

src/context.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ bitflags! {
3232
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#WEBGLCONTEXTATTRIBUTES
3333
///
3434
/// There are some extra `surfman`-specific flags as well.
35+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
3536
pub struct ContextAttributeFlags: u8 {
3637
/// Surfaces created for this context will have an alpha channel (RGBA or BGRA; i.e. 4
3738
/// channels, 32 bits per pixel, 8 bits per channel). If this is not present, surfaces will

0 commit comments

Comments
 (0)