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"
13
13
ignore = " 0.4.18"
14
14
semver = " 1.0"
15
15
termcolor = " 1.1.3"
16
+ rustc-hash = " 1.1.0"
16
17
17
18
[[bin ]]
18
19
name = " rust-tidy"
Original file line number Diff line number Diff line change 19
19
20
20
use crate :: walk:: { filter_dirs, walk} ;
21
21
use regex:: { Regex , RegexSet } ;
22
- use std:: { collections:: HashMap , ffi:: OsStr , path:: Path } ;
22
+ use rustc_hash:: FxHashMap ;
23
+ use std:: { ffi:: OsStr , path:: Path } ;
23
24
24
25
/// Error code markdown is restricted to 80 columns because they can be
25
26
/// displayed on the console with --example.
@@ -67,7 +68,7 @@ const ANNOTATIONS_TO_IGNORE: &[&str] = &[
67
68
68
69
fn generate_problems < ' a > (
69
70
consts : & ' a [ u32 ] ,
70
- letter_digit : & ' a HashMap < char , char > ,
71
+ letter_digit : & ' a FxHashMap < char , char > ,
71
72
) -> impl Iterator < Item = u32 > + ' a {
72
73
consts. iter ( ) . flat_map ( move |const_value| {
73
74
let problem =
You can’t perform that action at this time.
0 commit comments