about summary refs log tree commit diff
path: root/src/test/run-make/unicode-input
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-26 21:21:15 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-27 09:03:06 -0500
commitbce81e24647507c82e02e9918f54e8e3a2431149 (patch)
treed9137df10f07d1c9c5f8743d02c774a7add29a7f /src/test/run-make/unicode-input
parentd77f6d5366b330f9c2061cad0d3ff638c9cc05b7 (diff)
downloadrust-bce81e24647507c82e02e9918f54e8e3a2431149.tar.gz
rust-bce81e24647507c82e02e9918f54e8e3a2431149.zip
cleanup: s/`v.slice*()`/`&v[a..b]`/g + remove redundant `as_slice()` calls
Diffstat (limited to 'src/test/run-make/unicode-input')
-rw-r--r--src/test/run-make/unicode-input/multiple_files.rs2
-rw-r--r--src/test/run-make/unicode-input/span_length.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-make/unicode-input/multiple_files.rs b/src/test/run-make/unicode-input/multiple_files.rs
index eda89f2344b..e57f026889f 100644
--- a/src/test/run-make/unicode-input/multiple_files.rs
+++ b/src/test/run-make/unicode-input/multiple_files.rs
@@ -65,6 +65,6 @@ fn main() {
 
         // positive test so that this test will be updated when the
         // compiler changes.
-        assert!(err.as_slice().contains("expected item, found"))
+        assert!(err.contains("expected item, found"))
     }
 }
diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs
index d387b9d71e3..28b993ba69b 100644
--- a/src/test/run-make/unicode-input/span_length.rs
+++ b/src/test/run-make/unicode-input/span_length.rs
@@ -63,6 +63,6 @@ fn main() {
         // the span should end the line (e.g no extra ~'s)
         let expected_span = format!("^{}\n", repeat("~").take(n - 1)
                                                         .collect::<String>());
-        assert!(err.as_slice().contains(expected_span.as_slice()));
+        assert!(err.contains(expected_span.as_slice()));
     }
 }