Skip to content

Commit

Permalink
~[] to Vec in script/html/hubbub_html_parser.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
murphm8 authored and Ms2ger committed May 4, 2014
1 parent 093e9fd commit dccea25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/script/html/hubbub_html_parser.rs
Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit dccea25

Please sign in to comment.