From 5d28b4488f014565756720819309bf501fde61e1 Mon Sep 17 00:00:00 2001 From: CAOShurong <170531907+CAOShurong@users.noreply.github.com> Date: Sat, 15 Aug 2026 17:16:52 +0800 Subject: [PATCH] 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> --- rustfmt.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustfmt.toml b/rustfmt.toml index da5d80cdff..d741fcba11 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,3 @@ max_width = 70 hard_tabs = true -newline_style = "Unix" +newline_style = "Auto"