about summary refs log tree commit diff
diff options
context:
space:
mode:
authorErich Cordoba <erich.cm@yandex.com>2018-09-18 18:32:29 -0500
committerErich Cordoba <erich.cm@yandex.com>2018-09-18 18:32:29 -0500
commit3d662639f650f87d3ca5aa454a14b02e30ecc14e (patch)
tree4dee4d440b582ebcafc7defcd070c6ca8b16cbf0
parent79fcc58b24d85743d025fd880fca55748662ed3e (diff)
downloadrust-3d662639f650f87d3ca5aa454a14b02e30ecc14e.tar.gz
rust-3d662639f650f87d3ca5aa454a14b02e30ecc14e.zip
Remove unneeded clone() from tests
The expected.clone() calls were not needed for the tests. This is
just to keep consistency between the test cases.
-rw-r--r--src/librustdoc/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs
index 3b07a2ccdde..8a9ca924ee1 100644
--- a/src/librustdoc/test.rs
+++ b/src/librustdoc/test.rs
@@ -775,7 +775,7 @@ fn main() {
 assert_eq!(2+2, 4);
 }".to_string();
         let output = make_test(input, None, false, &opts);
-        assert_eq!(output, (expected.clone(), 2));
+        assert_eq!(output, (expected, 2));
     }
 
     #[test]
@@ -973,7 +973,7 @@ fn main() {
 assert_eq!(2+2, 4);
 }".to_string();
         let output = make_test(input, None, false, &opts);
-        assert_eq!(output, (expected.clone(), 2));
+        assert_eq!(output, (expected, 2));
     }
 
     #[test]
@@ -988,7 +988,7 @@ assert_eq!(2+2, 4);";
 //Ceci n'est pas une `fn main`
 assert_eq!(2+2, 4);".to_string();
         let output = make_test(input, None, true, &opts);
-        assert_eq!(output, (expected.clone(), 1));
+        assert_eq!(output, (expected, 1));
     }
 
     #[test]
@@ -1003,6 +1003,6 @@ assert_eq!(2+2, 4);".to_string();
 assert_eq!(2+2, 4);
 }".to_string();
         let output = make_test(input, None, false, &opts);
-        assert_eq!(output, (expected.clone(), 1));
+        assert_eq!(output, (expected, 1));
     }
 }