From 1dfe7650440a40ec430a3f968855a38ac0c461f5 Mon Sep 17 00:00:00 2001 From: William G Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Wed, 25 Sep 2024 16:54:33 +0100 Subject: [PATCH] Fix logging in format.rs --- src/format.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/format.rs b/src/format.rs index 8f316f4..a86b713 100644 --- a/src/format.rs +++ b/src/format.rs @@ -75,9 +75,8 @@ pub fn format_file( record_file_log(logs, Warn, file, "Indent does not return to zero."); } - record_file_log(logs, Info, file, "Formatting complete."); - new_text = remove_trailing_spaces(&new_text); + record_file_log(logs, Info, file, "Formatting complete."); new_text }