Skip to content

Commit 29a48d2

Browse files
Danilo Krummrichojeda
authored andcommitted
rust: error: use core::alloc::LayoutError
Use `core::alloc::LayoutError` instead of `alloc::alloc::LayoutError` in preparation to get rid of Rust's alloc crate. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20241004154149.93856-23-dakr@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 3145dc9 commit 29a48d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
use crate::{alloc::AllocError, str::CStr};
88

9-
use alloc::alloc::LayoutError;
9+
use core::alloc::LayoutError;
1010

1111
use core::fmt;
1212
use core::num::NonZeroI32;

0 commit comments

Comments
 (0)