Re: [PATCH v4 18/28] rust: treewide: switch to the kernel `Vec` type

From: Benno Lossin
Date: Thu Aug 08 2024 - 05:08:28 EST


On 05.08.24 17:19, Danilo Krummrich wrote:
> Now that we got the kernel `Vec` in place, convert all existing `Vec`
> users to make use of it.

You missed one in `rust/kernel/uaccess.rs:92`, but this doesn't
prevent it from compiling since the allocator is correctly inferred from
the context.

---
Cheers,
Benno

> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
> rust/kernel/str.rs | 12 +++++-------
> rust/kernel/sync/locked_by.rs | 2 +-
> rust/kernel/types.rs | 2 +-
> rust/kernel/uaccess.rs | 15 ++++++---------
> samples/rust/rust_minimal.rs | 4 ++--
> 5 files changed, 15 insertions(+), 20 deletions(-)