Re: [PATCH] rust: kbuild: run Clippy for `rusttest` code

From: Alice Ryhl
Date: Mon Nov 25 2024 - 04:10:22 EST


On Sat, Nov 23, 2024 at 7:07 PM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> Running Clippy for `rusttest` code is useful to catch issues there too,
> even if the code is not as critical. In the future, this code may also
> run in kernelspace and could be copy-pasted. Thus it is useful to keep
> it under the same standards. For instance, it will now make us add
> `// SAFETY` comments.
>
> It also makes everything more consistent.
>
> Thus clean the few issues spotted by Clippy and start running it.
>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>