File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5656,6 +5656,7 @@ dependencies = [
5656
5656
" cargo_metadata 0.15.4" ,
5657
5657
" fluent-syntax" ,
5658
5658
" ignore" ,
5659
+ " lazy_static" ,
5659
5660
" miropt-test-tools" ,
5660
5661
" regex" ,
5661
5662
" rustc-hash" ,
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ termcolor = "1.1.3"
16
16
rustc-hash = " 1.1.0"
17
17
fluent-syntax = " 0.11.1"
18
18
similar = " 2.5.0"
19
+ lazy_static = " 1.5.0"
19
20
20
21
[[bin ]]
21
22
name = " rust-tidy"
Original file line number Diff line number Diff line change 18
18
// ignore-tidy-dbg
19
19
20
20
use crate :: walk:: { filter_dirs, walk} ;
21
+ use lazy_static:: lazy_static;
21
22
use rustc_hash:: FxHashMap ;
22
23
use std:: { ffi:: OsStr , path:: Path } ;
23
24
@@ -125,11 +126,11 @@ fn generate_problematic_strings(
125
126
}
126
127
127
128
fn contains_problematic_const ( trimmed : & str ) -> bool {
128
- lazy_static:: lazy_static ! {
129
- static ref PROBLEMATIC_CONSTS_STRINGS : Vec <String > = generate_problematic_strings(
130
- ROOT_PROBLEMATIC_CONSTS ,
131
- & FxHashMap :: from_iter( LETTER_DIGIT . iter( ) . copied( ) ) ,
132
- ) ;
129
+ lazy_static ! {
130
+ static ref PROBLEMATIC_CONSTS_STRINGS : Vec <String > = generate_problematic_strings(
131
+ ROOT_PROBLEMATIC_CONSTS ,
132
+ & FxHashMap :: from_iter( LETTER_DIGIT . iter( ) . copied( ) ) ,
133
+ ) ;
133
134
}
134
135
PROBLEMATIC_CONSTS_STRINGS . iter ( ) . any ( |s| trimmed. to_uppercase ( ) . contains ( s) )
135
136
}
You can’t perform that action at this time.
0 commit comments