Skip to content

Commit f3f389a

Browse files
hegzaebroto
authored andcommitted
Apply suggestions from code review
consequtive -> consecutive Co-authored-by: Eduardo Broto <ebroto@tutanota.com>
1 parent ccb6f48 commit f3f389a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/field_reassign_with_default.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ impl LateLintPass<'_> for FieldReassignWithDefault {
5959
// Default::default() get reassigned
6060
let mut first_assign = None;
6161
let mut assigned_fields = FxHashMap::default();
62-
for consequtive_statement in &block.stmts[stmt_idx + 1..] {
62+
for consecutive_statement in &block.stmts[stmt_idx + 1..] {
6363
// interrupt if the statement is a let binding (`Local`) that shadows the original
6464
// binding
6565
if stmt_shadows_binding(consequtive_statement, binding_name) {
6666
break;
6767
}
68-
// find out if and which field was set by this `consequtive_statement`
68+
// find out if and which field was set by this `consecutive_statement`
6969
else if let Some((field_ident, assign_rhs)) =
7070
field_reassigned_by_stmt(consequtive_statement, binding_name)
7171
{
@@ -80,7 +80,7 @@ impl LateLintPass<'_> for FieldReassignWithDefault {
8080
first_assign = Some(consequtive_statement);
8181
}
8282
}
83-
// interrupt also if no field was assigned, since we only want to look at consequtive statements
83+
// interrupt also if no field was assigned, since we only want to look at consecutive statements
8484
else {
8585
break;
8686
}

0 commit comments

Comments
 (0)