mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add plugins for compositing and net crates #7699
Changed to_string calls to to_owned calls where was a need.
This commit is contained in:
parent
44de9173cc
commit
88815d21ba
18 changed files with 43 additions and 31 deletions
|
@ -46,7 +46,7 @@ impl Cookie {
|
|||
|
||||
// Step 5
|
||||
match PUB_DOMAINS.iter().find(|&x| domain == *x) {
|
||||
Some(val) if *val == url_host => domain = "".to_string(),
|
||||
Some(val) if *val == url_host => domain = "".to_owned(),
|
||||
Some(_) => return None,
|
||||
None => {}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ impl Cookie {
|
|||
}
|
||||
}
|
||||
|
||||
if self.cookie.secure && url.scheme != "https".to_string() {
|
||||
if self.cookie.secure && url.scheme != "https".to_owned() {
|
||||
return false;
|
||||
}
|
||||
if self.cookie.httponly && source == CookieSource::NonHTTP {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue