Skip to content

Commit fbfda61

Browse files
committed
Remove redundant closure
1 parent 6b993c8 commit fbfda61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustfmt_diff.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ pub struct ModifiedLines {
5656
impl From<Vec<Mismatch>> for ModifiedLines {
5757
fn from(mismatches: Vec<Mismatch>) -> ModifiedLines {
5858
let chunks = mismatches.into_iter().map(|mismatch| {
59-
let lines = || mismatch.lines.iter();
60-
let num_removed = lines()
59+
let lines = mismatch.lines.iter();
60+
let num_removed = lines
6161
.filter(|line| match line {
6262
DiffLine::Resulting(_) => true,
6363
_ => false,

0 commit comments

Comments
 (0)