Skip to content

Commit 8907040

Browse files
EijebongMichael Eden
authored and
Michael Eden
committed
Bump bitflags to 0.9 and bump version
1 parent 968a7a5 commit 8907040

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "websocket"
3-
version = "0.20.1"
3+
version = "0.20.2"
44
authors = ["cyderize <[email protected]>", "Michael Eden <[email protected]>"]
55

66
description = "A WebSocket (RFC6455) library for Rust."
@@ -20,7 +20,7 @@ license = "MIT"
2020
hyper = "^0.10.6"
2121
unicase = "1.0"
2222
url = "1.0"
23-
bitflags = "0.8"
23+
bitflags = "0.9"
2424
rand = "0.3"
2525
byteorder = "1.0"
2626
sha1 = "0.2"

src/ws/util/header.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
66

77
bitflags! {
88
/// Flags relevant to a WebSocket data frame.
9-
pub flags DataFrameFlags: u8 {
9+
pub struct DataFrameFlags: u8 {
1010
/// Marks this dataframe as the last dataframe
11-
const FIN = 0x80,
11+
const FIN = 0x80;
1212
/// First reserved bit
13-
const RSV1 = 0x40,
13+
const RSV1 = 0x40;
1414
/// Second reserved bit
15-
const RSV2 = 0x20,
15+
const RSV2 = 0x20;
1616
/// Third reserved bit
17-
const RSV3 = 0x10,
17+
const RSV3 = 0x10;
1818
}
1919
}
2020

0 commit comments

Comments
 (0)