File tree 3 files changed +1
-12
lines changed
3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,15 @@ use std::str::from_utf8;
17
17
///
18
18
/// # Example
19
19
/// ```
20
- /// # extern crate hyper;
21
- /// # extern crate cookie;
22
- /// # fn main() {
23
20
/// use hyper::header::{Headers, Cookie};
24
21
///
25
22
/// let mut headers = Headers::new();
26
23
///
27
24
/// headers.set(
28
25
/// Cookie(vec![
29
- /// CookiePair::new ("foo".to_owned(), " bar".to_owned() )
26
+ /// String::from ("foo= bar")
30
27
/// ])
31
28
/// );
32
- /// # }
33
29
/// ```
34
30
#[ derive( Clone , PartialEq , Debug ) ]
35
31
pub struct Cookie ( pub Vec < String > ) ;
Original file line number Diff line number Diff line change @@ -55,11 +55,6 @@ use std::str::from_utf8;
55
55
///
56
56
/// # Example
57
57
/// ```
58
- /// # extern crate hyper;
59
- /// # extern crate cookie;
60
- /// # fn main() {
61
- /// // extern crate cookie;
62
- ///
63
58
/// use hyper::header::{Headers, SetCookie};
64
59
///
65
60
/// let mut headers = Headers::new();
@@ -69,7 +64,6 @@ use std::str::from_utf8;
69
64
/// String::from("foo=bar; Path=/path; Domain=example.com")
70
65
/// ])
71
66
/// );
72
- /// # }
73
67
/// ```
74
68
#[ derive( Clone , PartialEq , Debug ) ]
75
69
pub struct SetCookie ( pub Vec < String > ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ extern crate time;
26
26
#[ macro_use] extern crate tokio_core as tokio;
27
27
extern crate tokio_proto;
28
28
extern crate tokio_service;
29
- #[ macro_use] extern crate url;
30
29
extern crate unicase;
31
30
#[ macro_use] extern crate url;
32
31
You can’t perform that action at this time.
0 commit comments