We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 365e00a commit 1d06b07Copy full SHA for 1d06b07
library/std/src/sys/unix/fs.rs
@@ -949,18 +949,16 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
949
Err(Error::last_os_error())
950
} else {
951
let inner = InnerReadDir { dirp: Dir(ptr), root };
952
- cfg_if::cfg_if! {
953
- if #[cfg(not(any(
+ Ok(ReadDir {
+ inner: Arc::new(inner),
954
+ #[cfg(not(any(
955
target_os = "solaris",
956
target_os = "illumos",
957
target_os = "fuchsia",
958
target_os = "redox",
- )))] {
959
- Ok(ReadDir { inner: Arc::new(inner), end_of_stream: false })
960
- } else {
961
- Ok(ReadDir { inner: Arc::new(inner) })
962
- }
963
+ )))]
+ end_of_stream: false,
+ })
964
}
965
966
0 commit comments