Skip to content

Commit

Permalink
Fix dogfood fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Apr 1, 2020
1 parent 7d58ba2 commit fcc56fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/loops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ fn get_indexed_assignments<'a, 'tcx>(
.chain(expr.as_ref().into_iter().map(|e| Some(get_assignment(cx, &*e, var))))
.filter_map(|op| op)
.collect::<Option<Vec<_>>>()
.unwrap_or_else(|| vec![])
.unwrap_or_default()
} else {
get_assignment(cx, body, var).into_iter().collect()
}
Expand Down

0 comments on commit fcc56fc

Please sign in to comment.