File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ fn check_unformatted(expr: &Expr) -> bool {
147
147
if let ExprArray ( ref exprs) = expr. node;
148
148
if exprs. len( ) == 1 ;
149
149
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" ) ;
151
151
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" ) ;
153
153
if let ExprPath ( ref qpath) = align_field. expr. node;
154
154
if last_path_segment( qpath) . name == "Implied" ;
155
155
then {
You can’t perform that action at this time.
0 commit comments