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

@@ -1578,10 +1578,13 @@ impl Copy for StatusCode {}
///
/// ```rust
/// # 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");
/// assert_eq!(format!("{}", Code123).as_slice(),
/// assert_eq!(&format!("{}", Code123)[],
/// "123 <unknown status code>");
/// # }
/// ```
///
/// If you wish to just include the number, cast to a u16 instead.