Skip to content

Commit

Permalink
Fix up duplicate derives with extra_traits
Browse files Browse the repository at this point in the history
  • Loading branch information
bossmc committed Apr 13, 2023
1 parent b95fbee commit cd78c71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ cfg_if! {
}
}

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

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

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

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

0 comments on commit cd78c71

Please sign in to comment.