diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-03 22:17:45 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-03 22:17:45 +0200 |
commit | 243814022e06c35c9bcdd99ccd281cb6ed180db0 (patch) | |
tree | 64dcd6f6eace86d63688100c37de00ea238262de /src/components/main | |
parent | 731e66ff132e41cdc49bc5324c0e15be19c46ec2 (diff) | |
download | servo-243814022e06c35c9bcdd99ccd281cb6ed180db0.tar.gz servo-243814022e06c35c9bcdd99ccd281cb6ed180db0.zip |
Replace all ~"" with "".to_owned().
Diffstat (limited to 'src/components/main')
-rw-r--r-- | src/components/main/layout/flow.rs | 2 | ||||
-rw-r--r-- | src/components/main/layout/table_colgroup.rs | 2 | ||||
-rw-r--r-- | src/components/main/layout/text.rs | 2 | ||||
-rw-r--r-- | src/components/main/layout/wrapper.rs | 4 | ||||
-rwxr-xr-x | src/components/main/servo.rs | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs index cda5b87e6a5..23d7e1ea219 100644 --- a/src/components/main/layout/flow.rs +++ b/src/components/main/layout/flow.rs @@ -913,7 +913,7 @@ impl<'a> ImmutableFlowUtils for &'a Flow { /// Dumps the flow tree for debugging, with a prefix to indicate that we're at the given level. fn dump_with_level(self, level: uint) { - let mut indent = ~""; + let mut indent = "".to_owned(); for _ in range(0, level) { indent.push_str("| ") } diff --git a/src/components/main/layout/table_colgroup.rs b/src/components/main/layout/table_colgroup.rs index 1a49e833129..586c2cf0e21 100644 --- a/src/components/main/layout/table_colgroup.rs +++ b/src/components/main/layout/table_colgroup.rs @@ -86,7 +86,7 @@ impl Flow for TableColGroupFlow { let txt = ~"TableColGroupFlow: "; txt.append(match self.box_ { Some(ref rb) => rb.debug_str(), - None => ~"", + None => "".to_owned(), }) } } diff --git a/src/components/main/layout/text.rs b/src/components/main/layout/text.rs index 4c7ddaa94d8..1ae5a0cbee2 100644 --- a/src/components/main/layout/text.rs +++ b/src/components/main/layout/text.rs @@ -210,7 +210,7 @@ impl TextRunScanner { // Next, concatenate all of the transformed strings together, saving the new // character indices. - let mut run_str: ~str = ~""; + let mut run_str: ~str = "".to_owned(); let mut new_ranges: ~[Range] = ~[]; let mut char_total = 0; for i in range(0, transformed_strs.len()) { diff --git a/src/components/main/layout/wrapper.rs b/src/components/main/layout/wrapper.rs index 4aa10c3ba63..aa8600db82e 100644 --- a/src/components/main/layout/wrapper.rs +++ b/src/components/main/layout/wrapper.rs @@ -393,10 +393,10 @@ fn get_content(content_list: &content::T) -> ~str { let iter = &mut value.clone().move_iter().peekable(); match iter.next() { Some(content::StringContent(content)) => content, - _ => ~"", + _ => "".to_owned(), } } - _ => ~"", + _ => "".to_owned(), } } diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs index 37b9092a7c0..1194d4b598e 100755 --- a/src/components/main/servo.rs +++ b/src/components/main/servo.rs @@ -192,7 +192,7 @@ fn run(opts: opts::Opts) { let url = if filename.starts_with("data:") { // As a hack for easier command-line testing, // assume that data URLs are not URL-encoded. - Url::new(~"data", None, ~"", None, + Url::new(~"data", None, "".to_owned(), None, filename.slice_from(5).to_owned(), Vec::new(), None) } else { parse_url(*filename, None) |