We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca14ee7 commit e6b7179Copy full SHA for e6b7179
src/raw/alloc.rs
@@ -6,6 +6,7 @@ mod inner {
6
pub use crate::alloc::alloc::{AllocRef, Global};
7
use core::ptr::NonNull;
8
9
+ #[allow(clippy::map_err_ignore)]
10
pub fn do_alloc<A: AllocRef>(alloc: &A, layout: Layout) -> Result<NonNull<u8>, ()> {
11
alloc
12
.alloc(layout)
@@ -42,6 +43,7 @@ mod inner {
42
43
}
44
45
46
47
48
alloc.alloc(layout).map_err(|_| ())
49
0 commit comments