Skip to content

Commit 9903223

Browse files
committed
Fix merge
1 parent 9b45856 commit 9903223

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/dir.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ impl Entry {
227227
/// See platform `readdir(3)` or `dirent(5)` manpage for when the file type is known;
228228
/// notably, some Linux filesystems don't implement this. The caller should use `stat` or
229229
/// `fstat` if this returns `None`.
230-
#[cfg(not(any(target_os = "illumos", target_os = "solaris")))]
231230
pub fn file_type(&self) -> Option<Type> {
232-
#[cfg(not(target_os = "illumos"))]
231+
#[cfg(not(any(target_os = "illumos", target_os = "solaris")))]
233232
match self.0.d_type {
234233
libc::DT_FIFO => Some(Type::Fifo),
235234
libc::DT_CHR => Some(Type::CharacterDevice),
@@ -241,13 +240,8 @@ impl Entry {
241240
/* libc::DT_UNKNOWN | */ _ => None,
242241
}
243242

244-
// illumos systems do not have the d_type member at all:
245-
#[cfg(target_os = "illumos")]
246-
None
247-
}
248-
249-
#[cfg(any(target_os = "illumos", target_os = "solaris"))]
250-
pub fn file_type(&self) -> Option<Type> {
243+
// illumos and Solaris systems do not have the d_type member at all:
244+
#[cfg(any(target_os = "illumos", target_os = "solaris"))]
251245
None
252246
}
253247
}

src/errno.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,7 @@ fn desc(errno: Errno) -> &'static str {
496496
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
497497
EDOOFUS => "Programming error",
498498

499-
#[cfg(any(target_os = "freebsd", target_os = "dragonfly",
500-
target_os = "redox"))]
499+
#[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "redox"))]
501500
EMULTIHOP => "Multihop attempted",
502501

503502
#[cfg(any(target_os = "freebsd", target_os = "dragonfly",

0 commit comments

Comments
 (0)