Skip to content

Commit

Permalink
mutants: simplify condition to avoid missed mutant
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Aug 18, 2024
1 parent 78b7e31 commit 24874b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/in_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn diff_filter(mutants: Vec<Mutant>, diff_text: &str) -> Result<Vec<Mutant>>
// the moment; this could be removed if it's fixed in that crate.
let fixed_diff = diff_text
.lines()
.filter(|line| !(line.starts_with("Binary files ") && line.ends_with("differ")))
.filter(|line| !(line.starts_with("Binary files ")))
.chain(once(""))
.join("\n");

Expand Down

0 comments on commit 24874b1

Please sign in to comment.