We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c0a53 commit 6f2af2aCopy full SHA for 6f2af2a
core/src/alloc/layout.rs
@@ -384,7 +384,7 @@ impl Layout {
384
pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> {
385
let size = self.size().checked_mul(n).ok_or(LayoutError)?;
386
// The safe constructor is called here to enforce the isize size limit.
387
- Layout::from_size_align(size as usize, self.align())
+ Layout::from_size_align(size, self.align())
388
}
389
390
/// Creates a layout describing the record for `self` followed by
0 commit comments