]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: pl011: fix warning with new clippy
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Oct 2025 21:05:08 +0000 (23:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Oct 2025 21:11:33 +0000 (23:11 +0200)
Newer versions of clippy are able to see that all the variants in
the PL011 word length enum end with "Bits", and complain about it.
Allow it.

Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/registers.rs

index 0c3a4d7d214e51b812698a40a17b7933c6a83859..fa572811b29c0b26c16052750f9361802329abb1 100644 (file)
@@ -255,6 +255,7 @@ pub enum Mode {
 
 #[bitsize(2)]
 #[derive(Clone, Copy, Debug, Eq, FromBits, PartialEq)]
+#[allow(clippy::enum_variant_names)]
 /// `WLEN` Word length, field of [Line Control register](LineControl).
 ///
 /// These bits indicate the number of data bits transmitted or received in a