Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 19, 2024
1 parent 26fd12c commit 143570b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/default_could_be_derived.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<'tcx> LateLintPass<'tcx> for DefaultCouldBeDerived {

// We have a manually written definition of a `<Type as Default>::default()`. We store the
// necessary metadata for further analysis of its body in `check_body`.
self.data = Some(Data { type_def_id: def.did(), parent: parent });
self.data = Some(Data { type_def_id: def.did(), parent });
}

fn check_impl_item_post(&mut self, _cx: &LateContext<'_>, _impl_item: &hir::ImplItem<'_>) {
Expand Down

0 comments on commit 143570b

Please sign in to comment.