Skip to content

Commit

Permalink
Remove clashing Eq impls after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Apr 3, 2024
1 parent c85fc6e commit 71a493b
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/bgp/nlri/afisafi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,6 @@ impl AfiSafiNlri for Ipv4UnicastNlri {
}
}

impl Eq for Ipv4UnicastNlri {}

impl FromStr for Ipv4UnicastNlri {
type Err = &'static str;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Expand Down Expand Up @@ -659,8 +657,6 @@ impl NlriCompose for Ipv4UnicastAddpathNlri {
}

}
impl Eq for Ipv4UnicastAddpathNlri {}

impl PartialEq<Ipv4UnicastAddpathNlri> for Ipv4UnicastAddpathNlri {
fn eq(&self, other: &Ipv4UnicastAddpathNlri) -> bool {
self.0 == other.0
Expand All @@ -686,8 +682,6 @@ impl AfiSafiNlri for Ipv4MulticastNlri {
}
}

impl Eq for Ipv4MulticastNlri {}

impl FromStr for Ipv4MulticastNlri {
type Err = &'static str;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Expand Down Expand Up @@ -749,8 +743,6 @@ impl NlriCompose for Ipv4MulticastNlri {
}
}

impl Eq for Ipv4MulticastAddpathNlri {}

impl PartialEq<Ipv4MulticastAddpathNlri> for Ipv4MulticastAddpathNlri {
fn eq(&self, other: &Ipv4MulticastAddpathNlri) -> bool {
self.0 == other.0
Expand Down Expand Up @@ -794,8 +786,6 @@ where
}
}

impl<Octs: AsRef<[u8]>> Eq for Ipv4MplsUnicastNlri<Octs> {}

impl<Octs, Other> PartialEq<Ipv4MplsUnicastNlri<Other>> for Ipv4MplsUnicastNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand All @@ -805,8 +795,6 @@ where Octs: AsRef<[u8]>,
}
}

impl<Octs: AsRef<[u8]>> Eq for Ipv4MplsUnicastAddpathNlri<Octs> {}

impl<Octs, Other> PartialEq<Ipv4MplsUnicastAddpathNlri<Other>> for Ipv4MplsUnicastAddpathNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand Down Expand Up @@ -890,8 +878,6 @@ impl<Octs: Clone + Debug + Hash> AfiSafiNlri for Ipv4RouteTargetNlri<Octs> {
}
}

impl<T: AsRef<[u8]>> Eq for Ipv4RouteTargetNlri<T> {}

impl<'a, O, P> AfiSafiParse<'a, O, P> for Ipv4RouteTargetNlri<O>
where
O: Octets,
Expand All @@ -916,8 +902,6 @@ where Octs: AsRef<[u8]>,
}
}

impl<T: AsRef<[u8]>> Eq for Ipv4RouteTargetAddpathNlri<T> {}

impl<Octs, Other> PartialEq<Ipv4RouteTargetAddpathNlri<Other>> for Ipv4RouteTargetAddpathNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand Down Expand Up @@ -987,8 +971,6 @@ impl<Octs: Clone + Debug + Hash + Octets> NlriCompose for Ipv4FlowSpecNlri<Octs>
}
}

impl<T: AsRef<[u8]>> Eq for Ipv4FlowSpecNlri<T> {}

impl<T> From<Ipv4FlowSpecNlri<T>> for FlowSpecNlri<T> {
fn from(value: Ipv4FlowSpecNlri<T>) -> Self {
value.0
Expand Down Expand Up @@ -1095,8 +1077,6 @@ impl NlriCompose for Ipv6UnicastNlri {
}
}

impl Eq for Ipv6UnicastAddpathNlri {}

impl PartialEq<Ipv6UnicastAddpathNlri> for Ipv6UnicastAddpathNlri {
fn eq(&self, other: &Ipv6UnicastAddpathNlri) -> bool {
self.0 == other.0
Expand Down Expand Up @@ -1162,10 +1142,6 @@ where
}
}

impl Eq for Ipv6MulticastNlri {}

impl Eq for Ipv6MulticastAddpathNlri {}

impl PartialEq<Ipv6MulticastAddpathNlri> for Ipv6MulticastAddpathNlri {
fn eq(&self, other: &Ipv6MulticastAddpathNlri) -> bool {
self.0 == other.0
Expand Down Expand Up @@ -1210,8 +1186,6 @@ where
}
}

impl<T: AsRef<[u8]>> Eq for Ipv6MplsUnicastNlri<T> {}

impl<Octs, Other> PartialEq<Ipv6MplsUnicastNlri<Other>> for Ipv6MplsUnicastNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand Down Expand Up @@ -1266,8 +1240,6 @@ where
}
}

impl<T: AsRef<[u8]>> Eq for Ipv6MplsVpnUnicastNlri<T> {}

impl<Octs, Other> PartialEq<Ipv6MplsVpnUnicastNlri<Other>> for Ipv6MplsVpnUnicastNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand All @@ -1277,8 +1249,6 @@ where Octs: AsRef<[u8]>,
}
}

impl<T: AsRef<[u8]>> Eq for Ipv6MplsVpnUnicastAddpathNlri<T> {}

impl<Octs, Other> PartialEq<Ipv6MplsVpnUnicastAddpathNlri<Other>> for Ipv6MplsVpnUnicastAddpathNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand Down Expand Up @@ -1323,8 +1293,6 @@ where
}
}

impl<T: AsRef<[u8]>> Eq for Ipv6FlowSpecNlri<T> {}

impl<T> From<Ipv6FlowSpecNlri<T>> for FlowSpecNlri<T> {
fn from(value: Ipv6FlowSpecNlri<T>) -> Self {
value.0
Expand Down Expand Up @@ -1408,8 +1376,6 @@ where
}
}

impl Eq for L2VpnVplsAddpathNlri {}

impl PartialEq<L2VpnVplsAddpathNlri> for L2VpnVplsAddpathNlri {
fn eq(&self, other: &L2VpnVplsAddpathNlri) -> bool {
self.0 == other.0
Expand Down Expand Up @@ -1450,8 +1416,6 @@ where
}
}

impl<T: AsRef<[u8]>> Eq for L2VpnEvpnNlri<T> {}

impl<Octs, Other> PartialEq<L2VpnEvpnNlri<Other>> for L2VpnEvpnNlri<Octs>
where Octs: AsRef<[u8]>,
Other: AsRef<[u8]>
Expand Down

0 comments on commit 71a493b

Please sign in to comment.