about summary refs log tree commit diff
path: root/src/rustfmt_diff.rs
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2017-12-08 13:07:42 +0900
committerSeiichi Uchida <seuchida@gmail.com>2017-12-08 13:07:42 +0900
commit3ebe0543626111475a2658c544b6d582d199d147 (patch)
treea0db0b8f26a059249c0b519334d6b944c8ddf4ed /src/rustfmt_diff.rs
parentc776443981d08ccad32ca536554a86a3a46c89b2 (diff)
Replace into() on &str with to_owned()
Diffstat (limited to 'src/rustfmt_diff.rs')
-rw-r--r--src/rustfmt_diff.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/rustfmt_diff.rs b/src/rustfmt_diff.rs
index c2dac6c0416..69633568755 100644
--- a/src/rustfmt_diff.rs
+++ b/src/rustfmt_diff.rs
@@ -180,10 +180,10 @@ mod test {
                 Mismatch {
                     line_number: 2,
                     lines: vec![
-                        Context("two".into()),
-                        Resulting("three".into()),
-                        Expected("trois".into()),
-                        Context("four".into()),
+                        Context("two".to_owned()),
+                        Resulting("three".to_owned()),
+                        Expected("trois".to_owned()),
+                        Context("four".to_owned()),
                     ],
                 },
             ]
@@ -201,18 +201,18 @@ mod test {
                 Mismatch {
                     line_number: 2,
                     lines: vec![
-                        Context("two".into()),
-                        Resulting("three".into()),
-                        Expected("trois".into()),
-                        Context("four".into()),
+                        Context("two".to_owned()),
+                        Resulting("three".to_owned()),
+                        Expected("trois".to_owned()),
+                        Context("four".to_owned()),
                     ],
                 },
                 Mismatch {
                     line_number: 5,
                     lines: vec![
-                        Resulting("five".into()),
-                        Expected("cinq".into()),
-                        Context("six".into()),
+                        Resulting("five".to_owned()),
+                        Expected("cinq".to_owned()),
+                        Context("six".to_owned()),
                     ],
                 },
             ]
@@ -229,7 +229,7 @@ mod test {
             vec![
                 Mismatch {
                     line_number: 3,
-                    lines: vec![Resulting("three".into()), Expected("trois".into())],
+                    lines: vec![Resulting("three".to_owned()), Expected("trois".to_owned())],
                 },
             ]
         );
@@ -245,7 +245,7 @@ mod test {
             vec![
                 Mismatch {
                     line_number: 5,
-                    lines: vec![Context("five".into()), Expected("".into())],
+                    lines: vec![Context("five".to_owned()), Expected("".to_owned())],
                 },
             ]
         );