Make IpAddr "Eq"

This commit is contained in:
Paul Florence 2020-07-20 13:21:33 +02:00
commit bf75387b37

View file

@ -22,7 +22,7 @@ const FIXED_DATA_LENGTH_4_BYTES: u8 = 0b_11;
/// IP Address struct. Represents an IP address as a u8 array of length 4. /// IP Address struct. Represents an IP address as a u8 array of length 4.
/// Can be instantiated with [`IpAddress::new`] /// Can be instantiated with [`IpAddress::new`]
#[derive(Copy, Clone, PartialOrd, PartialEq, Default, Debug)] #[derive(Copy, Clone, PartialOrd, PartialEq, Eq, Default, Debug)]
pub struct IpAddress { pub struct IpAddress {
pub address: [u8; 4], pub address: [u8; 4],
} }