File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ walkdir = "2"
1313ignore = " 0.4.18"
1414semver = " 1.0"
1515termcolor = " 1.1.3"
16+ rustc-hash = " 1.1.0"
1617
1718[[bin ]]
1819name = " rust-tidy"
Original file line number Diff line number Diff line change 1919
2020use crate :: walk:: { filter_dirs, walk} ;
2121use regex:: { Regex , RegexSet } ;
22- use std:: { collections:: HashMap , ffi:: OsStr , path:: Path } ;
22+ use rustc_hash:: FxHashMap ;
23+ use std:: { ffi:: OsStr , path:: Path } ;
2324
2425/// Error code markdown is restricted to 80 columns because they can be
2526/// displayed on the console with --example.
@@ -67,7 +68,7 @@ const ANNOTATIONS_TO_IGNORE: &[&str] = &[
6768
6869fn generate_problems < ' a > (
6970 consts : & ' a [ u32 ] ,
70- letter_digit : & ' a HashMap < char , char > ,
71+ letter_digit : & ' a FxHashMap < char , char > ,
7172) -> impl Iterator < Item = u32 > + ' a {
7273 consts. iter ( ) . flat_map ( move |const_value| {
7374 let problem =
You can’t perform that action at this time.
0 commit comments