Closed ashtul closed 5 months ago
In the code I see only this function - `
pub fn fingerprint(&self, hash: u64) -> u64 { hash >> (64 - self.fingerprint_bitwidth) }
Than there an assert for 0 value. debug_assert_ne!(fingerprint, 0);
0
debug_assert_ne!(fingerprint, 0);
But it does not promise a non 0 reply. Am I missing something?
The calling side guarantees that the conditions are met as follows:
If you have a specific scenario in which the assertion could be broken, it may indicate a bug, so please inform me.
Got it. Thank you!
In the code I see only this function - `
Than there an assert for
0
value.debug_assert_ne!(fingerprint, 0);
But it does not promise a non
0
reply. Am I missing something?