We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1062661 commit ccb6f48Copy full SHA for ccb6f48
clippy_lints/src/field_reassign_with_default.rs
@@ -42,7 +42,7 @@ declare_lint_pass!(FieldReassignWithDefault => [FIELD_REASSIGN_WITH_DEFAULT]);
42
impl LateLintPass<'_> for FieldReassignWithDefault {
43
fn check_block(&mut self, cx: &LateContext<'_>, block: &Block<'_>) {
44
// find all binding statements like `let mut _ = T::default()` where `T::default()` is the
45
- // `default` method of the `Default` trait. and store statement index in current block being
+ // `default` method of the `Default` trait, and store statement index in current block being
46
// checked and the name of the bound variable
47
let binding_statements_using_default: Vec<(usize, Symbol, &TyS<'_>)> =
48
enumerate_bindings_using_default(cx, block);
0 commit comments