about summary refs log tree commit diff
path: root/src/librustdoc/html/toc.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-04-15 18:17:48 -0700
committerBrian Anderson <banderson@mozilla.com>2014-04-18 17:25:34 -0700
commit919889a1d688a6bbe2edac8705f048f06b1b455c (patch)
tree322a69fa39bdaf37bbfffc84020acbd4c87871d0 /src/librustdoc/html/toc.rs
parentb75683cadf6c4c55360202cd6a0106be80532451 (diff)
downloadrust-919889a1d688a6bbe2edac8705f048f06b1b455c.tar.gz
rust-919889a1d688a6bbe2edac8705f048f06b1b455c.zip
Replace all ~"" with "".to_owned()
Diffstat (limited to 'src/librustdoc/html/toc.rs')
-rw-r--r--src/librustdoc/html/toc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/toc.rs b/src/librustdoc/html/toc.rs
index 128cabe16de..b741bf6966f 100644
--- a/src/librustdoc/html/toc.rs
+++ b/src/librustdoc/html/toc.rs
@@ -200,7 +200,7 @@ mod test {
         // there's been no macro mistake.
         macro_rules! push {
             ($level: expr, $name: expr) => {
-                assert_eq!(builder.push($level, $name.to_owned(), ~""), $name);
+                assert_eq!(builder.push($level, $name.to_owned(), "".to_owned()), $name);
             }
         }
         push!(2, "0.1");
@@ -240,7 +240,7 @@ mod test {
                                 level: $level,
                                 name: $name.to_owned(),
                                 sec_number: $name.to_owned(),
-                                id: ~"",
+                                id: "".to_owned(),
                                 children: toc!($($sub),*)
                             }
                             ),*