fix: address clippy warnings

This commit is contained in:
鲁树人
2025-09-08 20:35:09 +09:00
parent 9ba4eed1ea
commit 2db85a1e9c
12 changed files with 27 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ pub fn make_device_secret<S: AsRef<[u8]>>(
let device_id_hash_code_hex = device_id_hash_code_hex.as_bytes();
let mut device_key = [0u8; 0x10];
device_key[..device_id_hash_code_hex.len()].copy_from_slice(&device_id_hash_code_hex);
device_key[..device_id_hash_code_hex.len()].copy_from_slice(device_id_hash_code_hex);
for (key, salt) in device_key.iter_mut().zip(DEVICE_KEY_SALT) {
*key = salt.wrapping_add(*key);
}