File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -402,10 +402,12 @@ pub fn check(path: &Path, bad: &mut bool) {
402
402
let is_test = file. components ( ) . any ( |c| c. as_os_str ( ) == "tests" )
403
403
|| file. file_stem ( ) . unwrap ( ) == "tests" ;
404
404
let is_style = file. ends_with ( style_file) || style_file. ends_with ( file) ;
405
- let is_style_test = is_test && file. parent ( ) . unwrap ( ) . ends_with ( style_file. with_extension ( "" ) ) ;
405
+ let is_style_test =
406
+ is_test && file. parent ( ) . unwrap ( ) . ends_with ( style_file. with_extension ( "" ) ) ;
406
407
// scanning the whole file for multiple needles at once is more efficient than
407
408
// executing lines times needles separate searches.
408
- let any_problematic_line = !is_style && !is_style_test && problematic_regex. is_match ( contents) ;
409
+ let any_problematic_line =
410
+ !is_style && !is_style_test && problematic_regex. is_match ( contents) ;
409
411
for ( i, line) in contents. split ( '\n' ) . enumerate ( ) {
410
412
if line. is_empty ( ) {
411
413
if i == 0 {
You can’t perform that action at this time.
0 commit comments