]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/check_match.rs
remove unnecessary parentheses from range notation
[rust.git] / src / librustc / middle / check_match.rs
index 43f39a67f5c41b1d78b34b74a602d0965c2d9f40..926031742665dbd79774b4f37644aabab56c4d92 100644 (file)
@@ -926,8 +926,8 @@ pub fn specialize<'a>(cx: &MatchCheckCtxt, r: &[&'a Pat],
         }
     };
     head.map(|mut head| {
-        head.push_all(&r[0..col]);
-        head.push_all(&r[(col + 1)..]);
+        head.push_all(&r[..col]);
+        head.push_all(&r[col + 1..]);
         head
     })
 }