From a48026a838a53b4754385fb44548af9cd17e5715 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 4 Dec 2012 12:27:03 -0800 Subject: [PATCH] Eliminate some copies --- src/servo/html/hubbub_html_parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/servo/html/hubbub_html_parser.rs b/src/servo/html/hubbub_html_parser.rs index 5e22722fe12..2cd9ec77b51 100644 --- a/src/servo/html/hubbub_html_parser.rs +++ b/src/servo/html/hubbub_html_parser.rs @@ -191,15 +191,15 @@ pub fn parse_html(scope: NodeScope, let append_hook: @fn(Node, Node) = |parent_node, child_node| { do scope.read(&parent_node) |parent_node_contents| { do scope.read(&child_node) |child_node_contents| { - match (parent_node_contents.kind, child_node_contents.kind) { - (~Element(ref element), ~Text(ref data)) => { + match (&parent_node_contents.kind, &child_node_contents.kind) { + (&~Element(ref element), &~Text(ref data)) => { match element.kind { ~HTMLStyleElement => { debug!("found inline CSS stylesheet"); let url = url::from_str("http://example.com/"); // FIXME let provenance = InlineProvenance(result::unwrap(move url), copy *data); - css_chan.send(CSSTaskNewFile(provenance)); + css_chan.send(CSSTaskNewFile(move provenance)); } _ => {} // Nothing to do. }