Replace all ~"" with "".to_owned().

This commit is contained in:
Ms2ger 2014-05-03 22:17:45 +02:00
parent 731e66ff13
commit 243814022e
78 changed files with 290 additions and 290 deletions

View file

@ -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")