mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Use more of FxHash*
This commit is contained in:
parent
82ce5792ab
commit
95d67ec401
6 changed files with 25 additions and 15 deletions
|
@ -165,7 +165,7 @@ fn parse_pattern(pattern_str: &str) -> Result<Vec<PatternElement>, SsrError> {
|
|||
/// Checks for errors in a rule. e.g. the replace pattern referencing placeholders that the search
|
||||
/// pattern didn't define.
|
||||
fn validate_rule(rule: &SsrRule) -> Result<(), SsrError> {
|
||||
let mut defined_placeholders = std::collections::HashSet::new();
|
||||
let mut defined_placeholders = FxHashSet::default();
|
||||
for p in &rule.pattern.raw.tokens {
|
||||
if let PatternElement::Placeholder(placeholder) = p {
|
||||
defined_placeholders.insert(&placeholder.ident);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue