Skip to content

Commit

Permalink
Merge pull request rust-lang#3394 from phansch/rustup
Browse files Browse the repository at this point in the history
Fix clippy build failure on latest master
  • Loading branch information
Manishearth authored Nov 1, 2018
2 parents 6a165e5 + beb44ef commit a20599a
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 a20599a

Please sign in to comment.