Skip to content

Commit

Permalink
Fix clippy build failure on latest master
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Nov 1, 2018
1 parent 6a165e5 commit beb44ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/booleans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
improvements.push(suggestion);
}
}
let nonminimal_bool_lint = |suggestions| {
let nonminimal_bool_lint = |suggestions: Vec<_>| {
span_lint_and_then(
self.cx,
NONMINIMAL_BOOL,
Expand All @@ -434,7 +434,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
db.span_suggestions_with_applicability(
e.span,
"try",
suggestions,
suggestions.into_iter(),
// nonminimal_bool can produce minimal but
// not human readable expressions (#3141)
Applicability::Unspecified,
Expand Down

0 comments on commit beb44ef

Please sign in to comment.