Skip to content

Commit f13ad61

Browse files
kyledeweyjgillich
authored andcommitted
Now using use along with enums, as per rust-lang/rust#18973.
1 parent f883ce8 commit f13ad61

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

common/connection.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use std::fmt::{mod, Show};
33
use std::str::FromStr;
44
use super::util::{from_comma_delimited, fmt_comma_delimited};
55

6+
use self::ConnectionOption::{KeepAlive, Close, ConnectionHeader};
7+
68
/// The `Connection` header.
79
#[deriving(Clone, PartialEq, Show)]
810
pub struct Connection(pub Vec<ConnectionOption>);

common/transfer_encoding.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use std::fmt;
33
use std::str::FromStr;
44
use super::util::{from_comma_delimited, fmt_comma_delimited};
55

6+
use self::Encoding::{Chunked, Gzip, Deflate, Compress, EncodingExt};
7+
68
/// The `Transfer-Encoding` header.
79
///
810
/// This header describes the encoding of the message body. It can be
@@ -32,7 +34,6 @@ pub struct TransferEncoding(pub Vec<Encoding>);
3234
pub enum Encoding {
3335
/// The `chunked` encoding.
3436
Chunked,
35-
3637
/// The `gzip` encoding.
3738
Gzip,
3839
/// The `deflate` encoding.

common/upgrade.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use std::fmt::{mod, Show};
33
use std::str::FromStr;
44
use super::util::{from_comma_delimited, fmt_comma_delimited};
55

6+
use self::Protocol::{WebSocket, ProtocolExt};
7+
68
/// The `Upgrade` header.
79
#[deriving(Clone, PartialEq, Show)]
810
pub struct Upgrade(Vec<Protocol>);

0 commit comments

Comments
 (0)