Skip to content

Commit

Permalink
Merge pull request #19 from gbip/master
Browse files Browse the repository at this point in the history
Make IpAddr "Eq"
  • Loading branch information
kellerkindt authored Jul 20, 2020
2 parents b5b6ea8 + bf75387 commit 979e750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
Expand Down

0 comments on commit 979e750

Please # to comment.