Files
linux/rust/kernel
Miguel Ojeda e5d330e13f rust: allow clippy::disallowed_names for doctests
Examples (i.e. doctests) may want to use names such as `foo`, thus the
`clippy::disallowed_names` lint [1] gets in the way.

Thus allow it for all doctests.

In addition, remove it from the existing `expect`s we have in a few
doctests.

This does not mean that we should stop trying to find good names for
our examples, though.

Link: https://rust-lang.github.io/rust-clippy/stable/index.html#disallowed_names [1]
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/rust-for-linux/aRHSLChi5HYXW4-9@google.com/
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Benno Lossin <lossin@kernel.org>
Link: https://patch.msgid.link/20251117080714.876978-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-11-17 22:53:27 +01:00
..
2025-10-20 04:04:23 +02:00
2025-08-21 21:09:48 +02:00
2025-10-20 04:04:23 +02:00
2025-07-23 02:05:58 +02:00
2025-10-17 13:02:22 +02:00
2025-07-23 02:05:58 +02:00
2025-10-22 07:15:19 +02:00
2025-10-17 00:56:20 +02:00
2025-10-20 04:04:23 +02:00
2025-08-13 17:40:28 +02:00
2025-09-06 13:27:20 +02:00
2025-08-21 21:09:48 +02:00
2025-10-22 07:14:47 +02:00
2025-07-21 01:16:35 +02:00
2025-08-21 16:58:07 +02:00
2025-11-16 21:56:57 +01:00
2025-09-15 09:38:35 +02:00
2024-11-04 16:21:44 -05:00