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:
		| @@ -15,7 +15,6 @@ url = "*" | |||||||
| openssl = "*" | openssl = "*" | ||||||
| mime = "*" | mime = "*" | ||||||
| unsafe-any = "*" | unsafe-any = "*" | ||||||
| typeable = "*" |  | ||||||
| cookie = "*" | cookie = "*" | ||||||
| time = "*" | time = "*" | ||||||
| mucell = "*" | mucell = "*" | ||||||
|   | |||||||
| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user