mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove as_slice() calls from script.
This commit is contained in:
parent
ef536372cd
commit
a862479ca8
42 changed files with 115 additions and 124 deletions
|
@ -122,7 +122,7 @@ impl<'a> WorkerGlobalScopeMethods for JSRef<'a, WorkerGlobalScope> {
|
|||
let mut urls = Vec::with_capacity(url_strings.len());
|
||||
for url in url_strings.into_iter() {
|
||||
let url = UrlParser::new().base_url(&self.worker_url)
|
||||
.parse(url.as_slice());
|
||||
.parse(&url);
|
||||
match url {
|
||||
Ok(url) => urls.push(url),
|
||||
Err(_) => return Err(Syntax),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue