We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0153e64 commit c83128eCopy full SHA for c83128e
src/libstd/sys/unix/fs.rs
@@ -211,14 +211,8 @@ impl DirEntry {
211
#[cfg(any(target_os = "macos",
212
target_os = "ios",
213
target_os = "netbsd",
214
- target_os = "openbsd"))]
215
- fn name_bytes(&self) -> &[u8] {
216
- unsafe {
217
- ::slice::from_raw_parts(self.entry.d_name.as_ptr() as *const u8,
218
- self.entry.d_namlen as usize)
219
- }
220
221
- #[cfg(any(target_os = "freebsd",
+ target_os = "openbsd",
+ target_os = "freebsd",
222
target_os = "dragonfly",
223
target_os = "bitrig"))]
224
fn name_bytes(&self) -> &[u8] {
0 commit comments