mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Use FnvHasher for unordered maps and sets (#708)
This commit is contained in:
parent
aa7681f9ad
commit
8cfc0e5cf5
11 changed files with 42 additions and 45 deletions
|
@ -43,7 +43,7 @@ where
|
|||
match &expr.node {
|
||||
ExprKind::Call { func, args, .. } => {
|
||||
if !is_mutable_func(func)
|
||||
&& !is_immutable_func(func, &self.extend_immutable_calls)
|
||||
&& !is_immutable_func(func, self.extend_immutable_calls)
|
||||
&& !is_nan_or_infinity(func, args)
|
||||
{
|
||||
self.checks.push((
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue