Skip to content

Commit c7ad71c

Browse files
author
Michael Wright
committed
Fix clippy warnings
1 parent 6ae617b commit c7ad71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ fn check_unformatted(expr: &Expr) -> bool {
147147
if let ExprArray(ref exprs) = expr.node;
148148
if exprs.len() == 1;
149149
if let ExprStruct(_, ref fields, _) = exprs[0].node;
150-
if let Some(format_field) = fields.iter().filter(|f| f.name.node == "format").next();
150+
if let Some(format_field) = fields.iter().find(|f| f.name.node == "format");
151151
if let ExprStruct(_, ref fields, _) = format_field.expr.node;
152-
if let Some(align_field) = fields.iter().filter(|f| f.name.node == "width").next();
152+
if let Some(align_field) = fields.iter().find(|f| f.name.node == "width");
153153
if let ExprPath(ref qpath) = align_field.expr.node;
154154
if last_path_segment(qpath).name == "Implied";
155155
then {

0 commit comments

Comments
 (0)