diff options
Diffstat (limited to 'src/raw/alloc.rs')
-rw-r--r-- | src/raw/alloc.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/raw/alloc.rs b/src/raw/alloc.rs index 76fe1e9..de6c455 100644 --- a/src/raw/alloc.rs +++ b/src/raw/alloc.rs @@ -33,7 +33,6 @@ 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); @@ -48,7 +47,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 { |