mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
rust: error: import kernel's LayoutError instead of core's
Import the internal (`kernel::alloc`) version of `LayoutError` instead of the `core::alloc` one. In particular, this results in switching the type in the existing `From<LayoutError> for Error` implementation. Acked-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Jimmy Ostler <jtostler1@gmail.com> Link: https://lore.kernel.org/r/fe58a02189e8804a9eabdd01cb1927d4c491d79c.1734674670.git.jtostler1@gmail.com [ Reworded commit. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
b6357e2686
commit
7871c612ca
|
|
@ -4,9 +4,10 @@
|
||||||
//!
|
//!
|
||||||
//! C header: [`include/uapi/asm-generic/errno-base.h`](srctree/include/uapi/asm-generic/errno-base.h)
|
//! C header: [`include/uapi/asm-generic/errno-base.h`](srctree/include/uapi/asm-generic/errno-base.h)
|
||||||
|
|
||||||
use crate::{alloc::AllocError, str::CStr};
|
use crate::{
|
||||||
|
alloc::{layout::LayoutError, AllocError},
|
||||||
use core::alloc::LayoutError;
|
str::CStr,
|
||||||
|
};
|
||||||
|
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
use core::num::NonZeroI32;
|
use core::num::NonZeroI32;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user