mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: to_string() -> into_string()
This commit is contained in:
parent
475ff4dcb7
commit
e9d1740e19
39 changed files with 152 additions and 152 deletions
|
@ -81,7 +81,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
|
|||
}
|
||||
|
||||
fn SubstringData(self, offset: u32, count: u32) -> Fallible<DOMString> {
|
||||
Ok(self.data.borrow().as_slice().slice(offset as uint, count as uint).to_string())
|
||||
Ok(self.data.borrow().as_slice().slice(offset as uint, count as uint).into_string())
|
||||
}
|
||||
|
||||
fn AppendData(self, arg: DOMString) -> ErrorResult {
|
||||
|
@ -94,7 +94,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
|
|||
}
|
||||
|
||||
fn DeleteData(self, offset: u32, count: u32) -> ErrorResult {
|
||||
self.ReplaceData(offset, count, "".to_string())
|
||||
self.ReplaceData(offset, count, "".into_string())
|
||||
}
|
||||
|
||||
fn ReplaceData(self, offset: u32, count: u32, arg: DOMString) -> ErrorResult {
|
||||
|
@ -107,7 +107,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
|
|||
} else {
|
||||
count
|
||||
};
|
||||
let mut data = self.data.borrow().as_slice().slice(0, offset as uint).to_string();
|
||||
let mut data = self.data.borrow().as_slice().slice(0, offset as uint).into_string();
|
||||
data.push_str(arg.as_slice());
|
||||
data.push_str(self.data.borrow().as_slice().slice((offset + count) as uint, length as uint));
|
||||
*self.data.borrow_mut() = data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue