Skip to content

Commit 1120a51

Browse files
authored
Bump Clippy to 1.94 and fix clippy::manual_rotate (#544)
1 parent d52b5b6 commit 1120a51

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: RustCrypto/actions/cargo-cache@master
2121
- uses: dtolnay/rust-toolchain@master
2222
with:
23-
toolchain: 1.85.0
23+
toolchain: 1.94.0
2424
components: clippy
2525
- run: cargo clippy --all --exclude aes --all-features -- -D warnings
2626

belt-block/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ mod tests {
174174
let mut h: [u32; 256] = [0u32; 256];
175175
for x in 0..256 {
176176
let mut y: u32 = H[x] as u32;
177-
y = (y << r) | (y >> (32 - r));
177+
y = y.rotate_left(r);
178178
h[x] = y;
179179
}
180180
match r {

gift/src/primitives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub(crate) fn u32big(x: &[u8]) -> u32 {
55

66
#[inline]
77
pub(crate) fn ror(x: &u32, y: &u32) -> u32 {
8-
((*x) >> (*y)) | (*x << (32 - (*y)))
8+
(*x).rotate_right(*y)
99
}
1010

1111
#[inline]

0 commit comments

Comments
 (0)