diff --git a/Cargo.toml b/Cargo.toml index fda3ba3325..12584d11c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "websocket" -version = "0.20.1" +version = "0.20.2" authors = ["cyderize ", "Michael Eden "] description = "A WebSocket (RFC6455) library for Rust." @@ -20,7 +20,7 @@ license = "MIT" hyper = "^0.10.6" unicase = "1.0" url = "1.0" -bitflags = "0.8" +bitflags = "0.9" rand = "0.3" byteorder = "1.0" sha1 = "0.2" diff --git a/src/ws/util/header.rs b/src/ws/util/header.rs index 23ac8461d4..8d6a3fab9a 100644 --- a/src/ws/util/header.rs +++ b/src/ws/util/header.rs @@ -6,15 +6,15 @@ use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt}; bitflags! { /// Flags relevant to a WebSocket data frame. - pub flags DataFrameFlags: u8 { + pub struct DataFrameFlags: u8 { /// Marks this dataframe as the last dataframe - const FIN = 0x80, + const FIN = 0x80; /// First reserved bit - const RSV1 = 0x40, + const RSV1 = 0x40; /// Second reserved bit - const RSV2 = 0x20, + const RSV2 = 0x20; /// Third reserved bit - const RSV3 = 0x10, + const RSV3 = 0x10; } }