File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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) {
402402 let is_test = file. components ( ) . any ( |c| c. as_os_str ( ) == "tests" )
403403 || file. file_stem ( ) . unwrap ( ) == "tests" ;
404404 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 ( "" ) ) ;
406407 // scanning the whole file for multiple needles at once is more efficient than
407408 // 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) ;
409411 for ( i, line) in contents. split ( '\n' ) . enumerate ( ) {
410412 if line. is_empty ( ) {
411413 if i == 0 {
You can’t perform that action at this time.
0 commit comments