trans::debuginfo: simplify

This commit is contained in:
Tamir Duberstein 2015-11-10 12:42:37 -05:00
parent 55f9712d14
commit bcca5e6454
No known key found for this signature in database
GPG Key ID: 1C1E98CC8E17BB89

View File

@ -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]