Skip to content

Commit e7ac5fa

Browse files
Danilo Krummrichojeda
Danilo Krummrich
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 <[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] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent b118812 commit e7ac5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

+1-1
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)