Skip to content

Commit 5d28b44

Browse files
committed
fix: respect platform line endings in rustfmt
Use rustfmt's Auto newline style so formatting checks preserve the checkout's native line endings on Windows while retaining LF on Unix-like systems. Assisted-by: OpenAI Codex Signed-off-by: CAOShurong <170531907+CAOShurong@users.noreply.github.com>
1 parent 2fa693c commit 5d28b44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
max_width = 70
22
hard_tabs = true
3-
newline_style = "Unix"
3+
newline_style = "Auto"

0 commit comments

Comments
 (0)