Skip to content

Commit f69471d

Browse files
committed
try without manual traits impl
1 parent 7bba370 commit f69471d

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -867,41 +867,6 @@ cfg_if! {
867867
self.absflat.hash(state);
868868
}
869869
}
870-
871-
impl PartialEq for prop_info {
872-
fn eq(&self, other: &prop_info) -> bool {
873-
self.__name == other.__name
874-
&& self.__serial == other.__serial
875-
&& self.__value == other.__value
876-
}
877-
}
878-
impl Eq for prop_info {}
879-
impl fmt::Debug for prop_info {
880-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
881-
f.debug_struct("prop_info")
882-
.field("__name", &self.__name)
883-
.field("__serial", &self.__serial)
884-
.field("__value", &self.__value)
885-
.finish()
886-
}
887-
}
888-
889-
impl Eq for ethhdr {}
890-
891-
impl PartialEq for ethhdr {
892-
fn eq(&self, other: &ethhdr) -> bool {
893-
self.h_dest
894-
.iter()
895-
.zip(other.h_dest.iter())
896-
.all(|(a, b)| a == b)
897-
&& self
898-
.h_source
899-
.iter()
900-
.zip(other.h_source.iter())
901-
.all(|(a, b)| a == b)
902-
&& self.h_proto == other.h_proto
903-
}
904-
}
905870
}
906871
}
907872

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -562,23 +562,6 @@ cfg_if! {
562562
}
563563
}
564564
}
565-
566-
impl Eq for ethhdr {}
567-
568-
impl PartialEq for ethhdr {
569-
fn eq(&self, other: &ethhdr) -> bool {
570-
self.h_dest
571-
.iter()
572-
.zip(other.h_dest.iter())
573-
.all(|(a, b)| a == b)
574-
&& self
575-
.h_source
576-
.iter()
577-
.zip(other.h_source.iter())
578-
.all(|(a, b)| a == b)
579-
&& self.h_proto == other.h_proto
580-
}
581-
}
582565
}
583566
}
584567

0 commit comments

Comments
 (0)