@@ -52,7 +52,7 @@ pub mod config {
5252 use crate :: time:: U32Ext ;
5353
5454 #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
55- #[ derive( Debug , Clone , Copy , PartialEq ) ]
55+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
5656 pub enum WordLength {
5757 DataBits8 ,
5858 DataBits9 ,
@@ -62,7 +62,7 @@ pub mod config {
6262 /// underlying USART will be configured to send/receive the parity bit in
6363 /// addtion to the data bits.
6464 #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
65- #[ derive( Debug , Clone , Copy , PartialEq ) ]
65+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
6666 pub enum Parity {
6767 /// No parity bit will be added/checked.
6868 ParityNone ,
@@ -78,7 +78,7 @@ pub mod config {
7878 ///
7979 /// Wrapper around `STOP_A`
8080 #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
81- #[ derive( Clone , Copy , Debug , PartialEq ) ]
81+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
8282 pub enum StopBits {
8383 #[ doc = "1 stop bit" ]
8484 STOP1 ,
@@ -91,7 +91,7 @@ pub mod config {
9191 }
9292
9393 #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
94- #[ derive( Debug , Clone , Copy , PartialEq ) ]
94+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
9595 pub enum DmaConfig {
9696 None ,
9797 Tx ,
@@ -100,7 +100,7 @@ pub mod config {
100100 }
101101
102102 #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
103- #[ derive( Debug , Clone , Copy , PartialEq ) ]
103+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
104104 pub struct Config {
105105 pub baudrate : Bps ,
106106 pub wordlength : WordLength ,
0 commit comments