From 4fc090b25a3bfd66d14b484064aaf967665bd328 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sun, 20 Oct 2024 02:20:09 +0800 Subject: [PATCH] Avoid rewriting sorted file (#68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and improve CRLF logic. --- .gitignore | 1 + src/main.rs | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 5171945..a616ffa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.VSCodeCounter/ /target **/*.rs.bk diff --git a/src/main.rs b/src/main.rs index ae329fe..b33d799 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,6 +65,8 @@ fn check_toml(path: &str, matches: &ArgMatches, config: &Config) -> IoResult IoResult IoResult IoResult IoResult