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 }