From bf75387b37bd9797204aa1b3a76587a893a37c3c Mon Sep 17 00:00:00 2001 From: Paul Florence Date: Mon, 20 Jul 2020 13:21:33 +0200 Subject: [PATCH] Make IpAddr "Eq" --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bb44045..7032976 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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], }