Skip to content

Commit 0181d77

Browse files
committed
dogfood
1 parent 516f4f6 commit 0181d77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clippy_lints/src/booleans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
441441
diag.span_suggestions(
442442
e.span,
443443
"try",
444-
suggestions.into_iter(),
444+
suggestions,
445445
// nonminimal_bool can produce minimal but
446446
// not human readable expressions (#3141)
447447
Applicability::Unspecified,

clippy_lints/src/explicit_into_iter_fn_arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use clippy_utils::source::snippet;
33
use clippy_utils::{get_parent_expr, is_trait_method};
44
use rustc_errors::Applicability;
55
use rustc_hir::def_id::DefId;
6-
use rustc_hir::*;
6+
use rustc_hir::{Expr, ExprKind};
77
use rustc_lint::{LateContext, LateLintPass};
88
use rustc_middle::ty;
99
use rustc_session::{declare_lint_pass, declare_tool_lint};

clippy_lints/src/loops/manual_memcpy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(super) fn check<'tcx>(
5151
iter_b = Some(get_assignment(body));
5252
}
5353

54-
let assignments = iter_a.into_iter().flatten().chain(iter_b.into_iter());
54+
let assignments = iter_a.into_iter().flatten().chain(iter_b);
5555

5656
let big_sugg = assignments
5757
// The only statements in the for loops can be indexed assignments from
@@ -402,7 +402,7 @@ fn get_assignments<'a, 'tcx>(
402402
StmtKind::Local(..) | StmtKind::Item(..) => None,
403403
StmtKind::Expr(e) | StmtKind::Semi(e) => Some(e),
404404
})
405-
.chain((*expr).into_iter())
405+
.chain(*expr)
406406
.filter(move |e| {
407407
if let ExprKind::AssignOp(_, place, _) = e.kind {
408408
path_to_local(place).map_or(false, |id| {

0 commit comments

Comments
 (0)