Skip to content

Commit ea97478

Browse files
Henri Lunnikivihegza
Henri Lunnikivi
authored andcommitted
cargo dev fmt
1 parent c2c5e49 commit ea97478

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/field_reassign_with_default.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ impl LateLintPass<'_> for FieldReassignWithDefault {
4444
// find all binding statements like `let mut _ = T::default()` where `T::default()` is the
4545
// `default` method of the `Default` trait, and store statement index in current block being
4646
// checked and the name of the bound variable
47-
let binding_statements_using_default =
48-
enumerate_bindings_using_default(cx, block);
47+
let binding_statements_using_default = enumerate_bindings_using_default(cx, block);
4948

5049
// start from the `let mut _ = _::default();` and look at all the following
5150
// statements, see if they re-assign the fields of the binding

0 commit comments

Comments
 (0)