Skip to content

Commit

Permalink
Remove newline
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie committed Oct 18, 2023
1 parent efe4273 commit 7d1ae68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selene-lib/src/lints/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub fn test_lint_config_with_output<
let diff_output_path = path_base.with_extension("fixed.diff");

if let Ok(expected) = fs::read_to_string(&diff_output_path) {
pretty_assertions::assert_str_eq!(&(expected + "\n"), &fixed_diff.as_str());
pretty_assertions::assert_str_eq!(&expected, &fixed_diff);
} else {
let mut output_file =
fs::File::create(diff_output_path).expect("couldn't create fixed.diff output file");
Expand Down

0 comments on commit 7d1ae68

Please sign in to comment.