@@ -6,7 +6,7 @@ use crate::time::rate::{Baud, Extensions};
6
6
/// Stop Bit configuration parameter for serial.
7
7
///
8
8
/// Wrapper around [`STOP_A`]
9
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
9
+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
10
10
#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
11
11
pub enum StopBits {
12
12
/// 0.5 stop bit
@@ -45,7 +45,7 @@ impl From<STOP_A> for StopBits {
45
45
/// underlying USART will be configured to send/receive the parity bit in
46
46
/// addtion to the data bits.
47
47
#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
48
- #[ derive( Debug , Clone , Copy , PartialEq ) ]
48
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
49
49
pub enum Parity {
50
50
/// No parity bit will be added/checked.
51
51
None ,
@@ -73,7 +73,7 @@ pub enum Parity {
73
73
/// assert!(config.parity == Parity::None);
74
74
/// assert!(config.stopbits == StopBits::STOP1);
75
75
/// ```
76
- #[ derive( Debug , Clone , Copy , PartialEq ) ]
76
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
77
77
#[ non_exhaustive]
78
78
pub struct Config {
79
79
/// Serial interface baud rate
0 commit comments