diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-11-01 13:57:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-01 13:57:27 -0700 |
| commit | a20599ab57d08bb61cd177f9c0c98ec395376dd8 (patch) | |
| tree | 00d94a8f89bb570611fde40577a5fae3770178a9 | |
| parent | 6a165e5a9296ab4166db733d2675039830716598 (diff) | |
| parent | beb44ef6cac013f721a319bea05d50021c0d2b0d (diff) | |
| download | rust-a20599ab57d08bb61cd177f9c0c98ec395376dd8.tar.gz rust-a20599ab57d08bb61cd177f9c0c98ec395376dd8.zip | |
Merge pull request #3394 from phansch/rustup
Fix clippy build failure on latest master
| -rw-r--r-- | clippy_lints/src/booleans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/booleans.rs b/clippy_lints/src/booleans.rs index f12859d90c3..2d587b79357 100644 --- a/clippy_lints/src/booleans.rs +++ b/clippy_lints/src/booleans.rs @@ -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, @@ -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, |
