mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix deprecation warnings
This commit is contained in:
parent
903a608c6a
commit
a3c0366bd6
7 changed files with 15 additions and 15 deletions
|
@ -1432,7 +1432,7 @@ impl<'a> DocumentMethods for &'a Document {
|
|||
Some(ref title) => {
|
||||
// Steps 3-4.
|
||||
let value = Node::collect_text_contents(title.r().children());
|
||||
split_html_space_chars(&value).collect::<Vec<_>>().connect(" ")
|
||||
split_html_space_chars(&value).collect::<Vec<_>>().join(" ")
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ impl<'a> HTMLOptionElementMethods for &'a HTMLOptionElement {
|
|||
let mut content = String::new();
|
||||
collect_text(&node, &mut content);
|
||||
let v: Vec<&str> = split_html_space_chars(&content).collect();
|
||||
v.connect(" ")
|
||||
v.join(" ")
|
||||
}
|
||||
|
||||
// https://www.whatwg.org/html/#dom-option-text
|
||||
|
|
|
@ -1060,7 +1060,7 @@ impl ScriptTask {
|
|||
for it_page in self.root_page().iter() {
|
||||
urls.push(it_page.document().url().serialize());
|
||||
}
|
||||
let path_seg = format!("url({})", urls.connect(", "));
|
||||
let path_seg = format!("url({})", urls.join(", "));
|
||||
let reports = ScriptTask::get_reports(self.get_cx(), path_seg);
|
||||
reports_chan.send(reports);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue