]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_back/sha2.rs
remove unnecessary parentheses from range notation
[rust.git] / src / librustc_back / sha2.rs
index e376ac50dcdf5ebd1055e6892a1409d1d257bdaf..0228098b8f8384c4aad7eb4068b401504d372381 100644 (file)
@@ -156,7 +156,7 @@ fn input<F>(&mut self, input: &[u8], mut func: F) where
         // While we have at least a full buffer size chunk's worth of data, process that data
         // without copying it into the buffer
         while input.len() - i >= size {
-            func(&input[i..(i + size)]);
+            func(&input[i..i + size]);
             i += size;
         }