mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Update Rust crate rustc-hash to v2 (#12001)
This commit is contained in:
parent
446ad0ba44
commit
53a80a5c11
17 changed files with 78 additions and 105 deletions
|
@ -1,8 +1,7 @@
|
|||
use std::collections::BTreeSet;
|
||||
use std::hash::BuildHasherDefault;
|
||||
|
||||
use regex::Regex;
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
use rustc_hash::{FxBuildHasher, FxHashMap, FxHashSet};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use strum::IntoEnumIterator;
|
||||
|
||||
|
@ -2406,8 +2405,7 @@ impl IsortOptions {
|
|||
.collect::<Result<_, _>>()?;
|
||||
|
||||
// Verify that `section_order` doesn't contain any duplicates.
|
||||
let mut seen =
|
||||
FxHashSet::with_capacity_and_hasher(section_order.len(), BuildHasherDefault::default());
|
||||
let mut seen = FxHashSet::with_capacity_and_hasher(section_order.len(), FxBuildHasher);
|
||||
for section in §ion_order {
|
||||
if !seen.insert(section) {
|
||||
warn_user_once!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue