Skip to content

Commit c45c8de

Browse files
fables-talesclaude
andcommitted
Run rustfmt
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c70ab7d commit c45c8de

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/main.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,9 @@ fn main() {
349349
let text_diffs: Arc<Mutex<Vec<String>>> = Arc::new(Mutex::new(Vec::new()));
350350
let errors_count: Arc<Mutex<usize>> = Arc::new(Mutex::new(0));
351351

352-
iterate_input_files(&opts, &|(file_path, before)| {
353-
match rubyfmt_string(&opts, before) {
352+
iterate_input_files(
353+
&opts,
354+
&|(file_path, before)| match rubyfmt_string(&opts, before) {
354355
Ok(None) => {}
355356
Ok(Some(fmtted)) => {
356357
let diff = TextDiff::from_lines(before, &fmtted);
@@ -361,11 +362,15 @@ fn main() {
361362
));
362363
}
363364
Err(e) => {
364-
handle_rubyfmt_error(e, &file_path.display().to_string(), ErrorExit::NoExit);
365+
handle_rubyfmt_error(
366+
e,
367+
&file_path.display().to_string(),
368+
ErrorExit::NoExit,
369+
);
365370
*errors_count.lock().unwrap() += 1;
366371
}
367-
}
368-
});
372+
},
373+
);
369374

370375
let all_diffs = text_diffs.lock().unwrap();
371376

0 commit comments

Comments
 (0)