fix: remove unnecessary parentheses warning in resolve.rs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ pub fn fp_to_numeric_id_for_bot(fp: &str, bot_token: &str) -> i64 {
|
|||||||
let hash = hasher.finalize();
|
let hash = hasher.finalize();
|
||||||
let mut arr = [0u8; 8];
|
let mut arr = [0u8; 8];
|
||||||
arr.copy_from_slice(&hash[..8]);
|
arr.copy_from_slice(&hash[..8]);
|
||||||
(i64::from_be_bytes(arr) & 0x7FFFFFFFFFFFFFFF) // ensure positive
|
i64::from_be_bytes(arr) & 0x7FFFFFFFFFFFFFFF // ensure positive
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convert a fingerprint hex string to a stable i64 ID (non-bot contexts).
|
/// Convert a fingerprint hex string to a stable i64 ID (non-bot contexts).
|
||||||
|
|||||||
Reference in New Issue
Block a user