mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Remove redundant closure
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user