about summary refs log tree commit diff
path: root/src/libcoretest
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-19 11:07:13 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-19 12:24:43 -0500
commit49684850bedcef007a2949c97872606d1d6dc325 (patch)
tree3842f94c466f1466a391cfa344cc448998984f1a /src/libcoretest
parent43f2c199e4e87d7ccd15658c52ad8dc5a1d54fb9 (diff)
downloadrust-49684850bedcef007a2949c97872606d1d6dc325.tar.gz
rust-49684850bedcef007a2949c97872606d1d6dc325.zip
remove unnecessary parentheses from range notation
Diffstat (limited to 'src/libcoretest')
-rw-r--r--src/libcoretest/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/iter.rs b/src/libcoretest/iter.rs
index 26819bf9209..4bbbde6b48c 100644
--- a/src/libcoretest/iter.rs
+++ b/src/libcoretest/iter.rs
@@ -585,7 +585,7 @@ fn check_randacc_iter<A, T>(a: T, len: uint) where
 fn test_double_ended_flat_map() {
     let u = [0u,1];
     let v = [5u,6,7,8];
-    let mut it = u.iter().flat_map(|x| v[(*x)..v.len()].iter());
+    let mut it = u.iter().flat_map(|x| v[*x..v.len()].iter());
     assert_eq!(it.next_back().unwrap(), &8);
     assert_eq!(it.next().unwrap(),      &5);
     assert_eq!(it.next_back().unwrap(), &7);