Remove Layout::pad_to_unlign unwrap
This commit is contained in:
parent
183e61b661
commit
87b8ab3734
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ impl<T: ?Sized> Arc<T> {
|
|||
// reference (see #54908).
|
||||
let layout = Layout::new::<ArcInner<()>>()
|
||||
.extend(value_layout).unwrap().0
|
||||
.pad_to_align().unwrap();
|
||||
.pad_to_align();
|
||||
|
||||
let mem = Global.alloc(layout)
|
||||
.unwrap_or_else(|_| handle_alloc_error(layout));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue