Messages in this thread | | | Date | Wed, 27 Mar 2024 17:19:18 +0000 | From | Benno Lossin <> | Subject | Re: [PATCH v2 10/10] rust: kernel: remove usage of `allocator_api` unstable feature |
| |
On 27.03.24 03:35, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho <walmeida@microsoft.com> > > With the adoption of `BoxExt` and `VecExt`, we don't need the functions > provided by this feature (namely the methods prefixed with `try_` and > different allocator per collection instance). > > We do need `AllocError`, but we define our own as it is a trivial empty > struct. > > Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> > --- > rust/kernel/alloc.rs | 4 ++++ > rust/kernel/alloc/box_ext.rs | 3 +-- > rust/kernel/alloc/vec_ext.rs | 4 ++-- > rust/kernel/error.rs | 4 ++-- > rust/kernel/init.rs | 3 +-- > rust/kernel/lib.rs | 1 - > rust/kernel/str.rs | 3 +-- > rust/kernel/sync/arc.rs | 4 ++-- > rust/kernel/workqueue.rs | 3 +-- > 9 files changed, 14 insertions(+), 15 deletions(-)
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
-- Cheers, Benno
| |