diff options
author | Matt Murphy <matthew.john.murphy@gmail.com> | 2014-04-27 12:56:18 -0500 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-04 23:16:17 +0200 |
commit | dccea25a8acc85986534ec57cb6486c078925b27 (patch) | |
tree | cd29bbb07e7b2a4e6ee868a5d7f39e242543ae47 /src/components/script/html/hubbub_html_parser.rs | |
parent | 093e9fdd19c67596eb0f5c3770eaa9957a87ff71 (diff) | |
download | servo-dccea25a8acc85986534ec57cb6486c078925b27.tar.gz servo-dccea25a8acc85986534ec57cb6486c078925b27.zip |
~[] to Vec in script/html/hubbub_html_parser.rs
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 8cebc7326e6..b094dd4a280 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -106,7 +106,7 @@ spawned, collates them, and sends them to the given result channel. */ fn css_link_listener(to_parent: Sender<HtmlDiscoveryMessage>, from_parent: Receiver<CSSMessage>) { - let mut result_vec = vec!(); + let mut result_vec = Vec::new(); loop { match from_parent.recv_opt() { @@ -129,7 +129,7 @@ fn css_link_listener(to_parent: Sender<HtmlDiscoveryMessage>, fn js_script_listener(to_parent: Sender<HtmlDiscoveryMessage>, from_parent: Receiver<JSMessage>, resource_task: ResourceTask) { - let mut result_vec = vec!(); + let mut result_vec = Vec::new(); loop { match from_parent.recv_opt() { |