Make IpAddr "Eq"
This commit is contained in:
parent
b5b6ea8655
commit
bf75387b37
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
/// 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 address: [u8; 4],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue