File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl Cookies {
66
66
/// to manipulate cookies and create a corresponding `SetCookie` header afterwards.
67
67
pub fn to_cookie_jar ( & self , key : & [ u8 ] ) -> CookieJar < ' static > {
68
68
let mut jar = CookieJar :: new ( key) ;
69
- for cookie in self . 0 . iter ( ) {
69
+ for cookie in self . iter ( ) {
70
70
jar. add_original ( cookie. clone ( ) ) ;
71
71
}
72
72
jar
Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ impl SetCookie {
67
67
/// Use this on client to apply changes from SetCookie to CookieJar.
68
68
/// Note that this will `panic!` if `CookieJar` is not root.
69
69
pub fn apply_to_cookie_jar ( & self , jar : & mut CookieJar ) {
70
- let & SetCookie ( ref cookies) = self ;
71
- for cookie in cookies. iter ( ) {
70
+ for cookie in self . iter ( ) {
72
71
jar. add_original ( cookie. clone ( ) )
73
72
}
74
73
}
You can’t perform that action at this time.
0 commit comments