diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-01-27 18:15:50 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-01-27 18:15:50 -0700 |
commit | 3f9012864a2cd927cf17a8e11dfa6922add1b7df (patch) | |
tree | 2bb312c53b839df71b5f8115e91f90ea57d0620a /components/script/dom/htmltableelement.rs | |
parent | ff8cbff81016c157373c1675f3eee69dd70ae544 (diff) | |
parent | 7fec73a432bcc2148b8866051ecb11be8d311fe3 (diff) | |
download | servo-3f9012864a2cd927cf17a8e11dfa6922add1b7df.tar.gz servo-3f9012864a2cd927cf17a8e11dfa6922add1b7df.zip |
auto merge of #4719 : servo/servo/rustup_20150109, r=jdm
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r-- | components/script/dom/htmltableelement.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index e5494e71afa..46e23a9665a 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -62,7 +62,10 @@ impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> { fn GetCaption(self) -> Option<Temporary<HTMLTableCaptionElement>> { let node: JSRef<Node> = NodeCast::from_ref(self); node.children() - .filter_map::<JSRef<HTMLTableCaptionElement>>(HTMLTableCaptionElementCast::to_ref) + .filter_map(|n| { + let t: Option<JSRef<HTMLTableCaptionElement>> = HTMLTableCaptionElementCast::to_ref(n); + t + }) .next() .map(Temporary::from_rooted) } |