Skip to content

Commit bcca5e6

Browse files
committed
trans::debuginfo: simplify
1 parent 55f9712 commit bcca5e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_trans/debuginfo/utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ pub fn bytes_to_bits(bytes: u64) -> u64 {
6060
#[inline]
6161
pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>)
6262
-> &'a CrateDebugContext<'tcx> {
63-
let debug_context: &'a CrateDebugContext<'tcx> = cx.dbg_cx().as_ref().unwrap();
64-
debug_context
63+
cx.dbg_cx().as_ref().unwrap()
6564
}
6665

6766
#[inline]

0 commit comments

Comments
 (0)