mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -121,7 +121,7 @@ pub fn preload_hsts_domains() -> Option<HSTSList> {
|
|||
pub fn secure_url(url: &Url) -> Url {
|
||||
if &*url.scheme == "http" {
|
||||
let mut secure_url = url.clone();
|
||||
secure_url.scheme = "https".to_string();
|
||||
secure_url.scheme = "https".to_owned();
|
||||
secure_url.relative_scheme_data_mut()
|
||||
.map(|scheme_data| {
|
||||
scheme_data.default_port = Some(443);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue