Skip to content

Commit 9c0ccb3

Browse files
committed
fmt
1 parent e554f8d commit 9c0ccb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/lints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn is_default_impl<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId) -> bool {
3737
if tcx.def_kind(def_id) == DefKind::AssocFn {
3838
// Check if this is a trait impl and get the defid of the trait if it is
3939
if let Some(parent_def_id) = tcx.opt_parent(def_id.into()) {
40-
if tcx.def_kind(parent_def_id) == (DefKind::Impl {of_trait: true}) {
40+
if tcx.def_kind(parent_def_id) == (DefKind::Impl { of_trait: true }) {
4141
if let Some(trait_def_id) = tcx.trait_id_of_impl(parent_def_id) {
4242
// check if it is a default impl
4343
if tcx.get_diagnostic_name(trait_def_id) == Some(sym::Default) {

0 commit comments

Comments
 (0)