Skip to content

Commit 6cc035a

Browse files
committed
refactor: Remove unnecessary temporary variables
1 parent 6b5bb87 commit 6cc035a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kcipher2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ impl KCipher2Core {
5656

5757
next_b[..10].copy_from_slice(&self.b[1..]);
5858

59-
let temp1 = (self.a[0] << 8) ^ consts::AMUL0[usize::try_from(self.a[0] >> 24).unwrap()];
60-
next_a[4] = temp1 ^ self.a[3];
59+
next_a[4] =
60+
(self.a[0] << 8) ^ consts::AMUL0[usize::try_from(self.a[0] >> 24).unwrap()] ^ self.a[3];
6161
if matches!(mode, Mode::Init) {
6262
next_a[4] ^= utils::nlf(self.b[0], self.r2, self.r1, self.a[4]);
6363
}

0 commit comments

Comments
 (0)