Skip to content

Commit 34e7a3c

Browse files
committed
Fix tidy
1 parent d9ac0c6 commit 34e7a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
535535
id: AllocId,
536536
liveness: AllocCheck,
537537
) -> InterpResult<'static, (Size, Align)> {
538-
let alloc_or_size_align = self.alloc_map.get_or(id, || -> Result<_, InterpResult<'static, (Size, Align)>> {
538+
let alloc_or_size_align = self.alloc_map.get_or(id, || {
539539
// Can't do this in the match argument, we may get cycle errors since the lock would
540540
// be held throughout the match.
541541
let alloc = self.tcx.alloc_map.lock().get(id);

0 commit comments

Comments
 (0)