We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcfe676 commit 969b4e9Copy full SHA for 969b4e9
uefi/src/mem/util.rs
@@ -9,6 +9,8 @@ use core::slice;
9
10
#[cfg(not(feature = "unstable"))]
11
use ::alloc::alloc::{alloc, dealloc};
12
+#[cfg(feature = "unstable")]
13
+use alloc::alloc::Global;
14
15
#[cfg(feature = "unstable")]
16
use {core::alloc::Allocator, core::ptr::NonNull};
@@ -39,7 +41,7 @@ pub(crate) fn make_boxed<
39
41
// The UEFI data structure.
40
42
Data: Align + ?Sized + Debug + 'a,
43
F: FnMut(&'a mut [u8]) -> Result<&'a mut Data, Option<usize>>,
- #[cfg(feature = "unstable")] A: Allocator,
44
+ #[cfg(feature = "unstable")] A: Allocator = Global,
45
>(
46
// A function to read the UEFI data structure into a provided buffer.
47
mut fetch_data_fn: F,
0 commit comments