mirror of
https://github.com/nivekuil/rip
synced 2024-11-22 19:53:12 +00:00
Fix logic in delete_lines_from_record
This commit is contained in:
parent
0e373be6de
commit
def845368b
1 changed files with 2 additions and 2 deletions
|
@ -375,8 +375,8 @@ fn delete_line_from_record<R>(record: R, graves_to_exhume: Vec<String>)
|
||||||
Ok(f) => BufReader::new(f)
|
Ok(f) => BufReader::new(f)
|
||||||
.lines()
|
.lines()
|
||||||
.filter_map(|l| l.ok())
|
.filter_map(|l| l.ok())
|
||||||
.filter(|l| graves_to_exhume.clone().into_iter()
|
.filter(|l| !graves_to_exhume.clone().into_iter()
|
||||||
.any(|y| y != record_line(l.as_str()).dest))
|
.any(|y| y == record_line(l.as_str()).dest))
|
||||||
.collect(),
|
.collect(),
|
||||||
Err(e) => return Err(e)
|
Err(e) => return Err(e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue