mirror of
https://github.com/jixunmoe/tc_tea_rust
synced 2026-03-07 20:19:49 +00:00
chore: fix clippy warning
This commit is contained in:
@@ -128,7 +128,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn tc_tea_decryption_reject_non_zero_byte() {
|
||||
let mut bad_data = GOOD_ENCRYPTED_DATA.clone();
|
||||
let mut bad_data = GOOD_ENCRYPTED_DATA;
|
||||
bad_data[23] ^= 0xff; // last byte
|
||||
assert!(decrypt(&bad_data, ENCRYPTION_KEY).is_none());
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ pub fn parse_key(key: &[u8]) -> Option<[u32; 4]> {
|
||||
for (i, k) in k.iter_mut().enumerate() {
|
||||
*k = key.read_u32_be(i * 4);
|
||||
}
|
||||
return Some(k);
|
||||
Some(k)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user