From beb44ef6cac013f721a319bea05d50021c0d2b0d Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Thu, 1 Nov 2018 20:35:23 +0100 Subject: [PATCH] Fix clippy build failure on latest master --- clippy_lints/src/booleans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/booleans.rs b/clippy_lints/src/booleans.rs index f12859d90c33..2d587b79357f 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,