diff options
| author | Christopher Durham <cad97@cad97.com> | 2019-11-09 15:39:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-09 15:39:24 -0500 |
| commit | b688d480a6a90b995f3142f0db3338cad14f17c9 (patch) | |
| tree | d31e1a3f974b72e24592ccfe64386f7f813fc893 /src/liballoc | |
| parent | 87b8ab3734c9dfebe9ff9037f15b7e54f36f9a56 (diff) | |
| download | rust-b688d480a6a90b995f3142f0db3338cad14f17c9.tar.gz rust-b688d480a6a90b995f3142f0db3338cad14f17c9.zip | |
Remove Layout::pad_to_align unwrap
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/rc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index a11f9e8c145..c92ac7f1343 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -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) |
