]> 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 a1a90395b3b783306c08c7a9f488348694a53a58..926031742665dbd79774b4f37644aabab56c4d92 100644 (file)
@@ -927,7 +927,7 @@ pub fn specialize<'a>(cx: &MatchCheckCtxt, r: &[&'a Pat],
     };
     head.map(|mut head| {
         head.push_all(&r[..col]);
-        head.push_all(&r[(col + 1)..]);
+        head.push_all(&r[col + 1..]);
         head
     })
 }