Skip to content

Commit 15e3bd3

Browse files
gzHadrienG2
authored andcommitted
Remove unwrap after pad_to_align (#109)
To make sure code compiles on latest nightly.
1 parent 148d908 commit 15e3bd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/proto/media/file/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ pub trait File: Sized {
189189
// always be a multiple of alignment.
190190
let layout = Layout::from_size_align(size, Info::alignment())
191191
.unwrap()
192-
.pad_to_align()
193-
.unwrap();
192+
.pad_to_align();
194193
let mut buffer = crate::exts::allocate_buffer(layout);
195194
let buffer_start = buffer.as_ptr();
196195

0 commit comments

Comments
 (0)