Skip to content

Commit 87b8ab3

Browse files
authored
Remove Layout::pad_to_unlign unwrap
1 parent 183e61b commit 87b8ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ impl<T: ?Sized> Arc<T> {
751751
// reference (see #54908).
752752
let layout = Layout::new::<ArcInner<()>>()
753753
.extend(value_layout).unwrap().0
754-
.pad_to_align().unwrap();
754+
.pad_to_align();
755755

756756
let mem = Global.alloc(layout)
757757
.unwrap_or_else(|_| handle_alloc_error(layout));

0 commit comments

Comments
 (0)