about summary refs log tree commit diff
path: root/src/libsyntax/ast_map
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/libsyntax/ast_map
parent43f2c199e4e87d7ccd15658c52ad8dc5a1d54fb9 (diff)
downloadrust-49684850bedcef007a2949c97872606d1d6dc325.tar.gz
rust-49684850bedcef007a2949c97872606d1d6dc325.zip
remove unnecessary parentheses from range notation
Diffstat (limited to 'src/libsyntax/ast_map')
-rw-r--r--src/libsyntax/ast_map/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_map/mod.rs b/src/libsyntax/ast_map/mod.rs
index f462a730d3a..baa9516ae5d 100644
--- a/src/libsyntax/ast_map/mod.rs
+++ b/src/libsyntax/ast_map/mod.rs
@@ -525,7 +525,7 @@ impl<'ast> Map<'ast> {
         NodesMatchingSuffix {
             map: self,
             item_name: parts.last().unwrap(),
-            in_which: &parts[..(parts.len() - 1)],
+            in_which: &parts[..parts.len() - 1],
             idx: 0,
         }
     }