Skip to content

Commit d85b3fd

Browse files
Danilo Krummrichfbq
authored andcommitted
rust: alloc: add Box to prelude
Now that we removed `BoxExt` and the corresponding includes in prelude.rs, add the new kernel `Box` type instead. Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f6603c3 commit d85b3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#[doc(no_inline)]
1515
pub use core::pin::Pin;
1616

17-
pub use crate::alloc::{flags::*, vec_ext::VecExt, KBox, KVBox, VBox};
17+
pub use crate::alloc::{flags::*, vec_ext::VecExt, Box, KBox, KVBox, VBox};
1818

1919
#[doc(no_inline)]
2020
pub use alloc::vec::Vec;

0 commit comments

Comments
 (0)