mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #7257 - jxs:master, r=Ms2ger
Replace uses of `for foo in bar.iter()`, and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7257) <!-- Reviewable:end -->
This commit is contained in:
commit
0d6d6a0500
32 changed files with 76 additions and 78 deletions
|
@ -212,7 +212,7 @@ impl ResourceManager {
|
|||
fn set_cookies_for_url(&mut self, request: Url, cookie_list: String, source: CookieSource) {
|
||||
let header = Header::parse_header(&[cookie_list.into_bytes()]);
|
||||
if let Ok(SetCookie(cookies)) = header {
|
||||
for bare_cookie in cookies.into_iter() {
|
||||
for bare_cookie in cookies {
|
||||
if let Some(cookie) = cookie::Cookie::new_wrapped(bare_cookie, &request, source) {
|
||||
self.cookie_storage.push(cookie, source);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue