Skip to content

Commit 18d91d6

Browse files
committed
Revert extra_traits change now dirent64 is a distinguished type
1 parent 19444fb commit 18d91d6

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,6 @@ cfg_if! {
900900
}
901901
}
902902

903-
#[cfg(not(target_env = "musl"))]
904903
impl PartialEq for dirent64 {
905904
fn eq(&self, other: &dirent64) -> bool {
906905
self.d_ino == other.d_ino
@@ -915,10 +914,8 @@ cfg_if! {
915914
}
916915
}
917916

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

921-
#[cfg(not(target_env = "musl"))]
922919
impl ::fmt::Debug for dirent64 {
923920
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
924921
f.debug_struct("dirent64")
@@ -931,7 +928,6 @@ cfg_if! {
931928
}
932929
}
933930

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

0 commit comments

Comments
 (0)