about summary refs log tree commit diff
path: root/src/librustdoc/passes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/passes.rs')
-rw-r--r--src/librustdoc/passes.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustdoc/passes.rs b/src/librustdoc/passes.rs
index 390f81642e6..ea58f1f3fc6 100644
--- a/src/librustdoc/passes.rs
+++ b/src/librustdoc/passes.rs
@@ -346,14 +346,14 @@ mod unindent_tests {
 
     #[test]
     fn should_unindent() {
-        let s = "    line1\n    line2".to_owned();
+        let s = "    line1\n    line2".to_string();
         let r = unindent(s.as_slice());
         assert_eq!(r.as_slice(), "line1\nline2");
     }
 
     #[test]
     fn should_unindent_multiple_paragraphs() {
-        let s = "    line1\n\n    line2".to_owned();
+        let s = "    line1\n\n    line2".to_string();
         let r = unindent(s.as_slice());
         assert_eq!(r.as_slice(), "line1\n\nline2");
     }
@@ -362,7 +362,7 @@ mod unindent_tests {
     fn should_leave_multiple_indent_levels() {
         // Line 2 is indented another level beyond the
         // base indentation and should be preserved
-        let s = "    line1\n\n        line2".to_owned();
+        let s = "    line1\n\n        line2".to_string();
         let r = unindent(s.as_slice());
         assert_eq!(r.as_slice(), "line1\n\n    line2");
     }
@@ -374,14 +374,14 @@ mod unindent_tests {
         //
         // #[doc = "Start way over here
         //          and continue here"]
-        let s = "line1\n    line2".to_owned();
+        let s = "line1\n    line2".to_string();
         let r = unindent(s.as_slice());
         assert_eq!(r.as_slice(), "line1\nline2");
     }
 
     #[test]
     fn should_not_ignore_first_line_indent_in_a_single_line_para() {
-        let s = "line1\n\n    line2".to_owned();
+        let s = "line1\n\n    line2".to_string();
         let r = unindent(s.as_slice());
         assert_eq!(r.as_slice(), "line1\n\n    line2");
     }