mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Remove redundant closure
This commit is contained in:
parent
6b993c8b8b
commit
fbfda614be
@ -56,8 +56,8 @@ pub struct ModifiedLines {
|
||||
impl From<Vec<Mismatch>> for ModifiedLines {
|
||||
fn from(mismatches: Vec<Mismatch>) -> ModifiedLines {
|
||||
let chunks = mismatches.into_iter().map(|mismatch| {
|
||||
let lines = || mismatch.lines.iter();
|
||||
let num_removed = lines()
|
||||
let lines = mismatch.lines.iter();
|
||||
let num_removed = lines
|
||||
.filter(|line| match line {
|
||||
DiffLine::Resulting(_) => true,
|
||||
_ => false,
|
||||
|
Loading…
Reference in New Issue
Block a user