Skip to content

Commit

Permalink
name_cstr() is not needed for Redox.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz authored and pietroalbini committed Jan 20, 2022
1 parent 2923f3a commit 68976d1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions library/std/src/sys/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,7 @@ impl DirEntry {
fn name_cstr(&self) -> &CStr {
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
}
#[cfg(any(
target_os = "solaris",
target_os = "illumos",
target_os = "fuchsia",
target_os = "redox"
))]
#[cfg(any(target_os = "solaris", target_os = "illumos", target_os = "fuchsia"))]
fn name_cstr(&self) -> &CStr {
&self.name
}
Expand Down

0 comments on commit 68976d1

Please sign in to comment.