@@ -6,7 +6,7 @@ use crate::time::rate::{Baud, Extensions};
66/// Stop Bit configuration parameter for serial.
77///
88/// Wrapper around [`STOP_A`]
9- #[ derive( Clone , Copy , Debug , PartialEq ) ]
9+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
1010#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
1111pub enum StopBits {
1212 /// 0.5 stop bit
@@ -45,7 +45,7 @@ impl From<STOP_A> for StopBits {
4545/// underlying USART will be configured to send/receive the parity bit in
4646/// addtion to the data bits.
4747#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
48- #[ derive( Debug , Clone , Copy , PartialEq ) ]
48+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
4949pub enum Parity {
5050 /// No parity bit will be added/checked.
5151 None ,
@@ -73,7 +73,7 @@ pub enum Parity {
7373/// assert!(config.parity == Parity::None);
7474/// assert!(config.stopbits == StopBits::STOP1);
7575/// ```
76- #[ derive( Debug , Clone , Copy , PartialEq ) ]
76+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
7777#[ non_exhaustive]
7878pub struct Config {
7979 /// Serial interface baud rate
0 commit comments