Skip to content

Commit 56a0c3c

Browse files
Danilo Krummrichfbq
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> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20240816001216.26575-20-dakr@kernel.org
1 parent 75a0fbb commit 56a0c3c

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::TryFromIntError;

0 commit comments

Comments
 (0)