diff options
Diffstat (limited to 'src/raw/alloc.rs')
-rw-r--r-- | src/raw/alloc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raw/alloc.rs b/src/raw/alloc.rs index de6c455..76fe1e9 100644 --- a/src/raw/alloc.rs +++ b/src/raw/alloc.rs @@ -33,6 +33,7 @@ mod inner { use crate::alloc::alloc::{alloc, dealloc, Layout}; use core::ptr::NonNull; + #[allow(clippy::missing_safety_doc)] // not exposed outside of this crate pub unsafe trait Allocator { fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()>; unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout); @@ -47,7 +48,7 @@ mod inner { } #[inline] unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { - dealloc(ptr.as_ptr(), layout) + dealloc(ptr.as_ptr(), layout); } } impl Default for Global { |