mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Replace all ~"" with "".to_owned().
This commit is contained in:
parent
731e66ff13
commit
243814022e
78 changed files with 290 additions and 290 deletions
|
@ -20,7 +20,7 @@ use dom::processinginstruction::ProcessingInstruction;
|
|||
use dom::text::Text;
|
||||
|
||||
pub fn serialize(iterator: &mut NodeIterator) -> ~str {
|
||||
let mut html = ~"";
|
||||
let mut html = "".to_owned();
|
||||
let mut open_elements: Vec<~str> = vec!();
|
||||
|
||||
for node in *iterator {
|
||||
|
@ -51,7 +51,7 @@ pub fn serialize(iterator: &mut NodeIterator) -> ~str {
|
|||
serialize_processing_instruction(processing_instruction)
|
||||
}
|
||||
DocumentFragmentNodeTypeId => {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
DocumentNodeTypeId => {
|
||||
fail!("It shouldn't be possible to serialize a document node")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue