File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub(crate) fn u32big(x: &[u8]) -> u32 {
55
66#[ inline]
77pub ( crate ) fn ror ( x : & u32 , y : & u32 ) -> u32 {
8- ( ( * x) >> ( * y) ) | ( * x << ( 32 - ( * y ) ) )
8+ ( * x) . rotate_right ( * y)
99}
1010
1111#[ inline]
You can’t perform that action at this time.
0 commit comments