@@ -125,7 +125,7 @@ impl Drop for TctiInfo {
125125
126126/// Placeholder TCTI types that can be used when initialising a `Context` to determine which
127127/// interface will be used to communicate with the TPM.
128- #[ derive( Clone , Debug , PartialEq ) ]
128+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
129129pub enum TctiNameConf {
130130 /// Connect to a TPM available as a device node on the system
131131 ///
@@ -313,7 +313,7 @@ fn validate_from_str_tcti() {
313313///
314314/// The default configuration uses the library default of
315315/// `/dev/tpm0`.
316- #[ derive( Clone , Debug , PartialEq ) ]
316+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
317317pub struct DeviceConfig {
318318 /// Path to the device node to connect to
319319 ///
@@ -355,7 +355,7 @@ fn validate_from_str_device_config() {
355355/// Configuration for an Mssim TCTI context
356356///
357357/// The default configuration will point to `localhost:2321`
358- #[ derive( Clone , Debug , PartialEq ) ]
358+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
359359pub struct NetworkTPMConfig {
360360 /// Address of the server to connect to
361361 ///
@@ -455,7 +455,7 @@ fn validate_from_str_networktpm_config() {
455455/// Address of a TPM server
456456///
457457/// The default value is `localhost`
458- #[ derive( Clone , Debug , PartialEq ) ]
458+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
459459pub enum ServerAddress {
460460 /// IPv4 or IPv6 address
461461 Ip ( IpAddr ) ,
@@ -498,7 +498,7 @@ impl Default for ServerAddress {
498498}
499499
500500/// Configuration for a TABRMD TCTI context
501- #[ derive( Clone , Debug , PartialEq ) ]
501+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
502502pub struct TabrmdConfig {
503503 /// Bus name to be used by TABRMD
504504 ///
@@ -555,7 +555,7 @@ impl FromStr for TabrmdConfig {
555555}
556556
557557/// DBus type for usage with TABRMD
558- #[ derive( Copy , Clone , Debug , PartialEq ) ]
558+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
559559pub enum BusType {
560560 System ,
561561 Session ,
0 commit comments