Skip to content

Commit d9c657d

Browse files
committed
Make status::StatusCode_0 pass
Needed to allow unstable. Also, why do we depend on typeable? Removed from Cargo.toml
1 parent cc7fa15 commit d9c657d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ url = "*"
1515
openssl = "*"
1616
mime = "*"
1717
unsafe-any = "*"
18-
typeable = "*"
1918
cookie = "*"
2019
time = "*"
2120
mucell = "*"

src/status.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1578,10 +1578,13 @@ impl Copy for StatusCode {}
15781578
///
15791579
/// ```rust
15801580
/// # use hyper::status::StatusCode::{ImATeapot, Code123};
1581-
/// assert_eq!(format!("{}", ImATeapot).as_slice(),
1581+
/// # #[allow(unstable)]
1582+
/// # fn main() {
1583+
/// assert_eq!(&format!("{}", ImATeapot)[],
15821584
/// "418 I'm a teapot");
1583-
/// assert_eq!(format!("{}", Code123).as_slice(),
1585+
/// assert_eq!(&format!("{}", Code123)[],
15841586
/// "123 <unknown status code>");
1587+
/// # }
15851588
/// ```
15861589
///
15871590
/// If you wish to just include the number, cast to a u16 instead.

0 commit comments

Comments
 (0)