Skip to content

Commit 7f522ea

Browse files
committed
Fix fmt
1 parent d9fd720 commit 7f522ea

File tree

1 file changed

+5
-3
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+5
-3
lines changed

compiler/rustc_middle/src/mir/mono.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ impl<'tcx> CodegenUnit<'tcx> {
539539
// the codegen tests and can even make item order
540540
// unstable.
541541
InstanceKind::Item(def) => {
542-
def.as_local().map(|def_id|tcx.def_span(def_id))
543-
},
542+
def.as_local().map(|def_id| tcx.def_span(def_id))
543+
}
544544
InstanceKind::VTableShim(..)
545545
| InstanceKind::ReifyShim(..)
546546
| InstanceKind::Intrinsic(..)
@@ -557,7 +557,9 @@ impl<'tcx> CodegenUnit<'tcx> {
557557
| InstanceKind::AsyncDropGlueCtorShim(..) => None,
558558
}
559559
}
560-
MonoItem::Static(def_id) => def_id.as_local().map(|def_id|tcx.def_span(def_id)),
560+
MonoItem::Static(def_id) => {
561+
def_id.as_local().map(|def_id| tcx.def_span(def_id))
562+
}
561563
MonoItem::GlobalAsm(item_id) => Some(tcx.def_span(item_id.owner_id.def_id)),
562564
},
563565
item.symbol_name(tcx),

0 commit comments

Comments
 (0)