This commit is contained in:
2025-10-28 17:08:50 -06:00
parent 1182560582
commit d7fb4b4058
7 changed files with 120 additions and 54 deletions

View File

@@ -46,7 +46,7 @@ pub struct CLayout {
#[cfg(feature = "alloc")]
impl Into<Layout> for CLayout {
fn into(self) -> Layout {
unsafe { Layout::from_size_align_unchecked(self.size, self.alignment) }
Layout::from_size_align(self.size, self.alignment).unwrap()
}
}