Update Rust crate rustc-hash to v2 (#12001)

This commit is contained in:
renovate[bot] 2024-06-23 20:46:42 -04:00 committed by GitHub
parent 446ad0ba44
commit 53a80a5c11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 78 additions and 105 deletions

View file

@ -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 &section_order {
if !seen.insert(section) {
warn_user_once!(