]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: kbuild: run Clippy for `rusttest` code
authorMiguel Ojeda <ojeda@kernel.org>
Sat, 23 Nov 2024 18:06:38 +0000 (19:06 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 9 Jan 2025 23:17:25 +0000 (00:17 +0100)
commit2a87f8b075ea0ba33d3809aee7980c019f920bd6
tree432eb26ca46cc8cd6492ae18e77ac41a0b038d07
parentf0915acd1fc6060a35e3f18673072671583ff0be
rust: kbuild: run Clippy for `rusttest` code

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.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20241123180639.260191-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/Makefile
rust/kernel/str.rs