Skip to content

Commit 8e52c65

Browse files
committed
Output warnings to stderr when using reorder and safe mode together
Close #332
1 parent 29e2dc9 commit 8e52c65

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ This file documents the changes made to the formatter with each release.
2121
- Preserve up to one blank line used to group elements in "containers" like enums
2222
- Fixed losing blank line between statements in a body if the previous statement has an inline comment (#320, thanks @Buitragox for the fix)
2323
- Fixed various edge cases with ignored directories: paths are now normalized before comparison
24+
- Fixed special get syntax with parentheses having an extra space (#314)
25+
- Output warnings to stderr when using reorder and safe mode together (#332)
2426

2527
## Release 0.24.0 (2026-07-25)
2628

‎src/formatter.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ fn process_source(
985985
process_source_reorder(input, node, render_elements);
986986
return;
987987
}
988-
println!(
988+
eprintln!(
989989
"The code uses disabled regions. Reordering is currently incompatible with disabled formatting as it can span any lines and reordering may break the disabled regions. Skipping reordering."
990990
);
991991
}

0 commit comments

Comments
 (0)