Skip to content

Commit f2ec9e0

Browse files
committed
Fix up duplicate derives with extra_traits
1 parent 67695e1 commit f2ec9e0

File tree

1 file changed

+4
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+4
-0
lines changed

src/unix/linux_like/linux/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ cfg_if! {
843843
}
844844
}
845845

846+
#[cfg(not(target_env = "musl"))]
846847
impl PartialEq for dirent64 {
847848
fn eq(&self, other: &dirent64) -> bool {
848849
self.d_ino == other.d_ino
@@ -857,8 +858,10 @@ cfg_if! {
857858
}
858859
}
859860

861+
#[cfg(not(target_env = "musl"))]
860862
impl Eq for dirent64 {}
861863

864+
#[cfg(not(target_env = "musl"))]
862865
impl ::fmt::Debug for dirent64 {
863866
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
864867
f.debug_struct("dirent64")
@@ -871,6 +874,7 @@ cfg_if! {
871874
}
872875
}
873876

877+
#[cfg(not(target_env = "musl"))]
874878
impl ::hash::Hash for dirent64 {
875879
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
876880
self.d_ino.hash(state);

0 commit comments

Comments
 (0)