Remove Layout::pad_to_align unwrap
This commit is contained in:
parent
87b8ab3734
commit
b688d480a6
1 changed files with 1 additions and 1 deletions
|
@ -897,7 +897,7 @@ impl<T: ?Sized> Rc<T> {
|
|||
// reference (see #54908).
|
||||
let layout = Layout::new::<RcBox<()>>()
|
||||
.extend(value_layout).unwrap().0
|
||||
.pad_to_align().unwrap();
|
||||
.pad_to_align();
|
||||
|
||||
// Allocate for the layout.
|
||||
let mem = Global.alloc(layout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue