Skip to content

Commit

Permalink
make the "formatting identity" comment a bit clearer (#39)
Browse files Browse the repository at this point in the history
should close #37 by making the
debug message clearer
> File is already formatted correctly.
>
instead of
> File is formatted correctly.

cc/ @AucaCoyan
  • Loading branch information
amtoine committed Jun 27, 2023
1 parent f7971b8 commit 5ed97a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn format_single_file(file: &PathBuf, config: &Config) {
let formatted_bytes = add_newline_at_end_of_file(format_inner(&contents, config));

if formatted_bytes == contents {
debug!("File is formatted correctly.");
debug!("File is already formatted correctly.");
}

let mut writer = File::create(file).unwrap();
Expand Down

0 comments on commit 5ed97a6

Please sign in to comment.