Skip to content

Commit

Permalink
Disable clippy::missing_safety_doc lint on Allocator trait
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick authored and Amanieu committed Dec 19, 2021
1 parent 4cae5d5 commit 05ee33e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/raw/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 05ee33e

Please sign in to comment.