Skip to content

Commit cd78c71

Browse files
committed
Fix up duplicate derives with extra_traits
1 parent b95fbee commit cd78c71

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
@@ -916,6 +916,7 @@ cfg_if! {
916916
}
917917
}
918918

919+
#[cfg(not(target_env = "musl"))]
919920
impl PartialEq for dirent64 {
920921
fn eq(&self, other: &dirent64) -> bool {
921922
self.d_ino == other.d_ino
@@ -930,8 +931,10 @@ cfg_if! {
930931
}
931932
}
932933

934+
#[cfg(not(target_env = "musl"))]
933935
impl Eq for dirent64 {}
934936

937+
#[cfg(not(target_env = "musl"))]
935938
impl ::fmt::Debug for dirent64 {
936939
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
937940
f.debug_struct("dirent64")
@@ -944,6 +947,7 @@ cfg_if! {
944947
}
945948
}
946949

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

0 commit comments

Comments
 (0)