Skip to content

Commit 68976d1

Browse files
hkratzpietroalbini
authored andcommitted
name_cstr() is not needed for Redox.
1 parent 2923f3a commit 68976d1

File tree

1 file changed

+1
-6
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-6
lines changed

library/std/src/sys/unix/fs.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,7 @@ impl DirEntry {
670670
fn name_cstr(&self) -> &CStr {
671671
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
672672
}
673-
#[cfg(any(
674-
target_os = "solaris",
675-
target_os = "illumos",
676-
target_os = "fuchsia",
677-
target_os = "redox"
678-
))]
673+
#[cfg(any(target_os = "solaris", target_os = "illumos", target_os = "fuchsia"))]
679674
fn name_cstr(&self) -> &CStr {
680675
&self.name
681676
}

0 commit comments

Comments
 (0)