Skip to content

Commit 05ee33e

Browse files
ajtribickAmanieu
authored andcommitted
Disable clippy::missing_safety_doc lint on Allocator trait
1 parent 4cae5d5 commit 05ee33e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/raw/alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ mod inner {
3333
use crate::alloc::alloc::{alloc, dealloc, Layout};
3434
use core::ptr::NonNull;
3535

36+
#[allow(clippy::missing_safety_doc)] // not exposed outside of this crate
3637
pub unsafe trait Allocator {
3738
fn allocate(&self, layout: Layout) -> Result<NonNull<u8>, ()>;
3839
unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout);

0 commit comments

Comments
 (0)