mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Fix some warnings in script.
This commit is contained in:
parent
fab8092581
commit
e921ce859e
12 changed files with 29 additions and 18 deletions
|
@ -775,7 +775,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
root.traverse_preorder()
|
||||
.find(|node| node.type_id() == NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLTitleElement)))
|
||||
.map(|title_elem| {
|
||||
let mut children = title_elem.children().filter_map(|n| {
|
||||
let children = title_elem.children().filter_map(|n| {
|
||||
let t: Option<JSRef<Text>> = TextCast::to_ref(n);
|
||||
t
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue