From: Paolo Bonzini Date: Thu, 9 Oct 2025 21:05:08 +0000 (+0200) Subject: rust: pl011: fix warning with new clippy X-Git-Tag: v10.2.0-rc1~64^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18beee5c6bb875ec5a1455e5e7118338701e2a16;p=thirdparty%2Fqemu.git rust: pl011: fix warning with new clippy 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 Signed-off-by: Paolo Bonzini --- diff --git a/rust/hw/char/pl011/src/registers.rs b/rust/hw/char/pl011/src/registers.rs index 0c3a4d7d21..fa572811b2 100644 --- a/rust/hw/char/pl011/src/registers.rs +++ b/rust/hw/char/pl011/src/registers.rs @@ -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