Skip to content

Commit 7838f6b

Browse files
committed
Address dogfood ci failure
1 parent f556d36 commit 7838f6b

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ use crate::utils::{
2525
snippet_with_applicability, snippet_with_macro_callsite, span_lint, span_lint_and_sugg, span_lint_and_then,
2626
span_note_and_lint, walk_ptrs_ty, walk_ptrs_ty_depth, SpanlessEq,
2727
};
28+
use crate::rustc_data_structures::fx::FxHashMap;
2829
use if_chain::if_chain;
2930
use matches::matches;
3031
use std::borrow::Cow;
31-
use std::collections::HashMap;
3232
use std::fmt;
3333
use std::iter;
3434

@@ -1948,7 +1948,7 @@ fn lint_filter_map<'a, 'tcx>(
19481948
filter_args: &'tcx [hir::Expr],
19491949
map_args: &'tcx [hir::Expr],
19501950
) {
1951-
let mut responses: HashMap<String, &str> = HashMap::new();
1951+
let mut responses: FxHashMap<String, &str> = FxHashMap::default();
19521952
responses.insert(
19531953
"is_some".to_string(),
19541954
"called `filter(p).map(q)` on an `Iterator<Option<_>>`. \

0 commit comments

Comments
 (0)