mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
~[] to Vec in net/resource_task.rs
This commit is contained in:
parent
631f70b1c5
commit
c174a40afd
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue