Skip to content

Commit 15bc2f4

Browse files
committed
remove temporary variable
1 parent 0afcfce commit 15bc2f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_mir/shim.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ fn make_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
114114
add_call_guards::add_call_guards(&mut result);
115115
debug!("make_shim({:?}) = {:?}", instance, result);
116116

117-
let result = tcx.alloc_mir(result);
118-
result
117+
tcx.alloc_mir(result)
119118
}
120119

121120
#[derive(Copy, Clone, Debug, PartialEq)]

0 commit comments

Comments
 (0)