Skip to content

Commit e6b7179

Browse files
committed
ignore clippy warnings
1 parent ca14ee7 commit e6b7179

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raw/alloc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ mod inner {
66
pub use crate::alloc::alloc::{AllocRef, Global};
77
use core::ptr::NonNull;
88

9+
#[allow(clippy::map_err_ignore)]
910
pub fn do_alloc<A: AllocRef>(alloc: &A, layout: Layout) -> Result<NonNull<u8>, ()> {
1011
alloc
1112
.alloc(layout)
@@ -42,6 +43,7 @@ mod inner {
4243
}
4344
}
4445

46+
#[allow(clippy::map_err_ignore)]
4547
pub fn do_alloc<A: AllocRef>(alloc: &A, layout: Layout) -> Result<NonNull<u8>, ()> {
4648
alloc.alloc(layout).map_err(|_| ())
4749
}

0 commit comments

Comments
 (0)