Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Christopher Durham 2019-11-09 18:28:41 -05:00 committed by GitHub
parent b688d480a6
commit b9da350b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,7 +225,7 @@ impl Layout {
// > `usize::MAX`)
let new_size = self.size() + pad;
// SAFETY: This necessarily respectes the from_size_align
// SAFETY: This necessarily respects the from_size_align
// prerequisites per the above.
unsafe { Layout::from_size_align_unchecked(new_size, self.align()) }
}