Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bump bitflags to 0.9 and bump version #133

Merged
merged 1 commit into from
Jun 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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