Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
  • Loading branch information
CAD97 and scottmcm authored Jun 30, 2022
1 parent b1d2551 commit ed7523a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/alloc/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ impl Layout {
pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> {
let size = self.size().checked_mul(n).ok_or(LayoutError)?;
// The safe constructor is called here to enforce the isize size limit.
Layout::from_size_align(size as usize, self.align())
Layout::from_size_align(size, self.align())
}

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

0 comments on commit ed7523a

Please # to comment.