Skip to content

Commit

Permalink
Add derive for Eq on xplatform::set Device and Peer
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Aug 22, 2022
1 parent 12a0651 commit 37d0842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xplatform/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::net::SocketAddr;

/// Documentation of each field comes from:
/// https://www.wireguard.com/xplatform/#configuration-protocol
#[derive(Debug, Default, PartialEq)]
#[derive(Debug, Default, PartialEq, Eq)]
pub struct Device {
/// The value for this key should be a lowercase hex-encoded private key of
/// the interface. The value may be an all zero string in the case of a set
Expand Down Expand Up @@ -59,7 +59,7 @@ impl Display for Device {

/// Documentation of each field comes from:
/// https://www.wireguard.com/xplatform/#configuration-protocol
#[derive(Clone, Debug, Default, PartialEq)]
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Peer {
/// The value for this key should be a lowercase hex-encoded public key of a
/// new peer entry, which this command adds. The same public key value may
Expand Down

0 comments on commit 37d0842

Please sign in to comment.