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

Benno Lossin
2024-08-08T09:08:20Z

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@kernel.org>
> ---
> 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(-)