mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Replace all ~"" with "".to_owned().
This commit is contained in:
parent
731e66ff13
commit
243814022e
78 changed files with 290 additions and 290 deletions
|
@ -435,7 +435,7 @@ impl<'a> NodeHelpers for JSRef<'a, Node> {
|
|||
|
||||
/// Dumps the node tree, for debugging, with indentation.
|
||||
fn dump_indent(&self, indent: uint) {
|
||||
let mut s = ~"";
|
||||
let mut s = "".to_owned();
|
||||
for _ in range(0, indent) {
|
||||
s.push_str(" ");
|
||||
}
|
||||
|
@ -1510,7 +1510,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
|
|||
match self.type_id {
|
||||
DocumentFragmentNodeTypeId |
|
||||
ElementNodeTypeId(..) => {
|
||||
let mut content = ~"";
|
||||
let mut content = "".to_owned();
|
||||
for node in self.traverse_preorder() {
|
||||
if node.is_text() {
|
||||
let text: &JSRef<Text> = TextCast::to_ref(&node).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue