Skip to content

Commit a20599a

Browse files
authored
Merge pull request #3394 from phansch/rustup
Fix clippy build failure on latest master
2 parents 6a165e5 + beb44ef commit a20599a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/booleans.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
424424
improvements.push(suggestion);
425425
}
426426
}
427-
let nonminimal_bool_lint = |suggestions| {
427+
let nonminimal_bool_lint = |suggestions: Vec<_>| {
428428
span_lint_and_then(
429429
self.cx,
430430
NONMINIMAL_BOOL,
@@ -434,7 +434,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
434434
db.span_suggestions_with_applicability(
435435
e.span,
436436
"try",
437-
suggestions,
437+
suggestions.into_iter(),
438438
// nonminimal_bool can produce minimal but
439439
// not human readable expressions (#3141)
440440
Applicability::Unspecified,

0 commit comments

Comments
 (0)