Fix clippy warnings

This commit is contained in:
Michael Wright 2018-04-12 08:50:42 +02:00
parent 6ae617b313
commit c7ad71ccf2

View File

@ -147,9 +147,9 @@ fn check_unformatted(expr: &Expr) -> bool {
if let ExprArray(ref exprs) = expr.node;
if exprs.len() == 1;
if let ExprStruct(_, ref fields, _) = exprs[0].node;
if let Some(format_field) = fields.iter().filter(|f| f.name.node == "format").next();
if let Some(format_field) = fields.iter().find(|f| f.name.node == "format");
if let ExprStruct(_, ref fields, _) = format_field.expr.node;
if let Some(align_field) = fields.iter().filter(|f| f.name.node == "width").next();
if let Some(align_field) = fields.iter().find(|f| f.name.node == "width");
if let ExprPath(ref qpath) = align_field.expr.node;
if last_path_segment(qpath).name == "Implied";
then {