Skip to content

Commit 6f2af2a

Browse files
CAD97scottmcm
andauthored
nit
Co-authored-by: scottmcm <[email protected]>
1 parent 04c0a53 commit 6f2af2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: core/src/alloc/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ impl Layout {
384384
pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> {
385385
let size = self.size().checked_mul(n).ok_or(LayoutError)?;
386386
// The safe constructor is called here to enforce the isize size limit.
387-
Layout::from_size_align(size as usize, self.align())
387+
Layout::from_size_align(size, self.align())
388388
}
389389

390390
/// Creates a layout describing the record for `self` followed by

0 commit comments

Comments
 (0)