Re: [PATCH] rust: bitfield: remove unnecessary `#[allow]`

From: Alexandre Courbot

Date: Fri Sep 11 2026 - 01:21:45 EST


On Fri Sep 11, 2026 at 2:05 AM JST, Gary Guo wrote:
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> The `#[allow(non_camel_case_types)]` was there because register names can
> be commonly SCREAMING_CASE and thus not CamelCase. However, when a bitfield
> type is created by itself, this justification does not apply. Thus, remove
> it.
>
> Users that want to use non-standard styles can add the `#[allow]`
> themselves. For example, the invocation of `bitfield!` inside `register!`
> macro carry this annotation.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>

Thanks!

Acked-by: Alexandre Courbot <acourbot@xxxxxxxxxx>