mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
clippy
This commit is contained in:
parent
4d9202ec6e
commit
e4b814ce1c
8 changed files with 51 additions and 48 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue