Skip to content

Commit

Permalink
Use assert_str_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie committed Oct 18, 2023
1 parent ad168a3 commit 0987940
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 @@ -187,7 +187,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_eq!(PrettyString(&expected), PrettyString(&fixed_diff));
pretty_assertions::assert_str_eq!(&expected, &fixed_diff.as_str());
} 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 0987940

Please sign in to comment.