File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ url = "*"
15
15
openssl = " *"
16
16
mime = " *"
17
17
unsafe-any = " *"
18
- typeable = " *"
19
18
cookie = " *"
20
19
time = " *"
21
20
mucell = " *"
Original file line number Diff line number Diff line change @@ -1578,10 +1578,13 @@ impl Copy for StatusCode {}
1578
1578
///
1579
1579
/// ```rust
1580
1580
/// # use hyper::status::StatusCode::{ImATeapot, Code123};
1581
- /// assert_eq!(format!("{}", ImATeapot).as_slice(),
1581
+ /// # #[allow(unstable)]
1582
+ /// # fn main() {
1583
+ /// assert_eq!(&format!("{}", ImATeapot)[],
1582
1584
/// "418 I'm a teapot");
1583
- /// assert_eq!(format!("{}", Code123).as_slice() ,
1585
+ /// assert_eq!(& format!("{}", Code123)[] ,
1584
1586
/// "123 <unknown status code>");
1587
+ /// # }
1585
1588
/// ```
1586
1589
///
1587
1590
/// If you wish to just include the number, cast to a u16 instead.
You can’t perform that action at this time.
0 commit comments