From 05ee33e9f0fa14bc869d120bcb8e2812d39574e3 Mon Sep 17 00:00:00 2001 From: Andrew Tribick Date: Mon, 13 Dec 2021 18:34:28 +0100 Subject: [PATCH] Disable clippy::missing_safety_doc lint on Allocator trait --- src/raw/alloc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raw/alloc.rs b/src/raw/alloc.rs index b019eb2d84..76fe1e9236 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, ()>; unsafe fn deallocate(&self, ptr: NonNull, layout: Layout);