rust upgrade

This commit is contained in:
Sean McArthur
2014-12-12 12:24:54 -08:00
parent 5e560cb1c1
commit 0bba6e80ee
12 changed files with 19 additions and 11 deletions

View File

@@ -1569,6 +1569,8 @@ impl StatusCode {
}
}
impl Copy for StatusCode {}
/// Formats the status code, *including* the canonical reason.
///
/// ```rust
@@ -1684,7 +1686,7 @@ impl ToPrimitive for StatusCode {
/// to get the appropriate *category* of status.
///
/// For HTTP/2.0, the 1xx Informational class is invalid.
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord, Copy)]
pub enum StatusClass {
/// 1xx: Informational - Request received, continuing process
Informational = 100,