rust: pl011: fix warning with new clippy
PATCH 1/1 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 <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- rust/hw/char/pl011/src/registers.rs | 1 + 1 file changed, 1 insertion(+)
rust/hw/char/pl011/src/registers.rs +1 -0
@@ -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
Signature · 1 line
2.51.0
Quoted 8 lines · Paolo Bonzini
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 <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>---
Reviewed-by Manos Pitsidianakis <[email protected]>
Quoted 19 lines
rust/hw/char/pl011/src/registers.rs | 1 + 1 file changed, 1 insertion(+)rust/hw/char/pl011/src/registers.rs +1
-1@@ -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 --2.51.0