aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-05-04 17:25:39 -0400
committerbors-servo <release+servo@mozilla.com>2014-05-04 17:25:39 -0400
commit67c9883d9aceb3a3f6395938629c38fc176e62ab (patch)
treedba9aaf2d7de99caaa9b8e03f894e5e05584ab4c /src/components/script
parentb1d0dac50d30506f85c7711437eb4957ee59cc0b (diff)
parent8b94a44c0be8d987b873d88bf422b12cac33eec4 (diff)
downloadservo-67c9883d9aceb3a3f6395938629c38fc176e62ab.tar.gz
servo-67c9883d9aceb3a3f6395938629c38fc176e62ab.zip
auto merge of #2317 : Ms2ger/servo/rebased-vec, r=Ms2ger
#2271 rebased.
Diffstat (limited to 'src/components/script')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 8cebc7326e6..1254b11538c 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -140,7 +140,7 @@ fn js_script_listener(to_parent: Sender<HtmlDiscoveryMessage>,
}
Ok((metadata, bytes)) => {
result_vec.push(JSFile {
- data: str::from_utf8(bytes).unwrap().to_owned(),
+ data: str::from_utf8(bytes.as_slice()).unwrap().to_owned(),
url: metadata.final_url,
});
}