Skip to content

Commit

Permalink
trans::debuginfo: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Jan 30, 2017
1 parent 55f9712 commit bcca5e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_trans/debuginfo/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ pub fn bytes_to_bits(bytes: u64) -> u64 {
#[inline]
pub fn debug_context<'a, 'tcx>(cx: &'a CrateContext<'a, 'tcx>)
-> &'a CrateDebugContext<'tcx> {
let debug_context: &'a CrateDebugContext<'tcx> = cx.dbg_cx().as_ref().unwrap();
debug_context
cx.dbg_cx().as_ref().unwrap()
}

#[inline]
Expand Down

0 comments on commit bcca5e6

Please sign in to comment.