Skip to content

Commit 381f0b1

Browse files
authored
format again
1 parent 5791bbf commit 381f0b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/tidy/src/style.rs

+4-2
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)