We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98bf5e commit ca523c7Copy full SHA for ca523c7
src/lib.rs
@@ -246,7 +246,7 @@ fn finalize(
246
output
247
}
248
249
-#[allow(clippy::identity_op, clippy::needless_range_loop)]
+#[allow(clippy::double_parens, clippy::needless_range_loop)]
250
#[inline(always)]
251
#[rustfmt::skip]
252
fn transform(state: &mut [u32; 4], buffer: &[u8; 64]) {
@@ -255,7 +255,7 @@ fn transform(state: &mut [u32; 4], buffer: &[u8; 64]) {
255
for i in 0..16 {
256
let j = i * 4;
257
segments[i] =
258
- ((buffer[j + 0] as u32) << 0)
+ ((buffer[j ] as u32) )
259
+ ((buffer[j + 1] as u32) << 8)
260
+ ((buffer[j + 2] as u32) << 16)
261
+ ((buffer[j + 3] as u32) << 24);
0 commit comments