Skip to content

Commit

Permalink
Bump bitflags to 0.9 and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Eijebong authored and Michael Eden committed Jun 19, 2017
1 parent 968a7a5 commit 8907040
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "websocket"
version = "0.20.1"
version = "0.20.2"
authors = ["cyderize <admin@cyderize.org>", "Michael Eden <themichaeleden@gmail.com>"]

description = "A WebSocket (RFC6455) library for Rust."
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/ws/util/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 8907040

Please # to comment.