Skip to content

Commit f160700

Browse files
committed
Use FxHashMap
1 parent e84b92f commit f160700

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lints/type_cosplay/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#![feature(rustc_private)]
22
#![warn(unused_extern_crates)]
33

4+
extern crate rustc_data_structures;
45
extern crate rustc_hir;
56
extern crate rustc_index;
67
extern crate rustc_middle;
78
extern crate rustc_span;
89

9-
use std::collections::HashMap;
10-
1110
use clippy_utils::{diagnostics::span_lint_and_help, match_def_path, ty::match_type};
11+
use rustc_data_structures::fx::FxHashMap;
1212
use rustc_hir::{def::Res, Expr, ExprKind, QPath, TyKind};
1313
use rustc_index::vec::Idx;
1414
use rustc_lint::{LateContext, LateLintPass};
@@ -58,7 +58,7 @@ dylint_linting::impl_late_lint! {
5858

5959
#[derive(Default)]
6060
struct TypeCosplay {
61-
deser_types: HashMap<AdtKind, Vec<(DefId, Span)>>,
61+
deser_types: FxHashMap<AdtKind, Vec<(DefId, Span)>>,
6262
}
6363

6464
impl<'tcx> LateLintPass<'tcx> for TypeCosplay {

0 commit comments

Comments
 (0)