From 0300a03353f745a2519ff6c8b0f8600a3d9f67f7 Mon Sep 17 00:00:00 2001 From: Pen Tree Date: Tue, 9 Jun 2020 23:46:53 +0800 Subject: [PATCH] fix type --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c8e9cf262b..28e1d60ec1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,7 +88,7 @@ macro_rules! assume { /// Handle to the jemalloc allocator /// -/// This type implements the `GlobalAllocAlloc` trait, allowing usage a global allocator. +/// This type implements the `GlobalAlloc` trait, allowing usage a global allocator. /// /// When the `alloc_trait` feature of this crate is enabled, it also implements the `Alloc` trait, /// allowing usage in collections. @@ -122,7 +122,7 @@ unsafe impl GlobalAlloc for Jemalloc { #[inline] unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { - assume!(!ptr.is_null()) + assume!(!ptr.is_null()); assume!(layout.size() != 0); let flags = layout_to_flags(layout.align(), layout.size()); ffi::sdallocx(ptr as *mut c_void, layout.size(), flags)