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>
This commit is contained in:
Danilo Krummrich 2024-10-04 17:41:26 +02:00 committed by Miguel Ojeda
parent 3145dc91c3
commit 29a48d25ff

View File

@ -6,7 +6,7 @@
use crate::{alloc::AllocError, str::CStr};
use alloc::alloc::LayoutError;
use core::alloc::LayoutError;
use core::fmt;
use core::num::NonZeroI32;