mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -112,7 +112,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
|
|||
count
|
||||
};
|
||||
let mut data = self.data.borrow().slice_chars(0, offset as usize).to_owned();
|
||||
data.push_str(arg.as_slice());
|
||||
data.push_str(&arg);
|
||||
data.push_str(&self.data.borrow().slice_chars((offset + count) as usize, length as usize));
|
||||
*self.data.borrow_mut() = data;
|
||||
// FIXME: Once we have `Range`, we should implement step7 to step11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue