Skip to content

Commit b688d48

Browse files
authored
Remove Layout::pad_to_align unwrap
1 parent 87b8ab3 commit b688d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ impl<T: ?Sized> Rc<T> {
897897
// reference (see #54908).
898898
let layout = Layout::new::<RcBox<()>>()
899899
.extend(value_layout).unwrap().0
900-
.pad_to_align().unwrap();
900+
.pad_to_align();
901901

902902
// Allocate for the layout.
903903
let mem = Global.alloc(layout)

0 commit comments

Comments
 (0)