Make status::StatusCode_0 pass

Needed to allow unstable.

Also, why do we depend on typeable? Removed from Cargo.toml
This commit is contained in:
cyderize
2015-01-10 19:36:51 +11:00
parent cc7fa15b04
commit d9c657da73
2 changed files with 5 additions and 3 deletions

View File

@@ -15,7 +15,6 @@ url = "*"
openssl = "*" openssl = "*"
mime = "*" mime = "*"
unsafe-any = "*" unsafe-any = "*"
typeable = "*"
cookie = "*" cookie = "*"
time = "*" time = "*"
mucell = "*" mucell = "*"

View File

@@ -1578,10 +1578,13 @@ impl Copy for StatusCode {}
/// ///
/// ```rust /// ```rust
/// # use hyper::status::StatusCode::{ImATeapot, Code123}; /// # use hyper::status::StatusCode::{ImATeapot, Code123};
/// assert_eq!(format!("{}", ImATeapot).as_slice(), /// # #[allow(unstable)]
/// # fn main() {
/// assert_eq!(&format!("{}", ImATeapot)[],
/// "418 I'm a teapot"); /// "418 I'm a teapot");
/// assert_eq!(format!("{}", Code123).as_slice(), /// assert_eq!(&format!("{}", Code123)[],
/// "123 <unknown status code>"); /// "123 <unknown status code>");
/// # }
/// ``` /// ```
/// ///
/// If you wish to just include the number, cast to a u16 instead. /// If you wish to just include the number, cast to a u16 instead.