This commit is contained in:
Anton-4 2024-04-15 16:50:44 +02:00
parent 4d9202ec6e
commit e4b814ce1c
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
8 changed files with 51 additions and 48 deletions

View file

@ -593,6 +593,9 @@ struct LockedGlobalInterner<'a, 'r> {
fn hash<V: std::hash::Hash>(val: V) -> u64 {
let mut state = roc_collections::all::BuildHasher::default().build_hasher();
val.hash(&mut state);
// clippy suggests a stylistic improvement but the suggested fix doesn't seem to work out
#[allow(clippy::manual_hash_one)]
state.finish()
}