Skip to content

Commit

Permalink
fs: update cfg attr in fs::read_dir (#5806)
Browse files Browse the repository at this point in the history
  • Loading branch information
icedrocket committed Jun 25, 2023
1 parent 78bf8a9 commit 6d25a00
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tokio/src/fs/read_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ impl ReadDir {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "nto",
target_os = "vita",
)))]
file_type: std.file_type().ok(),
std: Arc::new(std),
Expand Down Expand Up @@ -200,7 +202,9 @@ pub struct DirEntry {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "nto",
target_os = "vita",
)))]
file_type: Option<FileType>,
std: Arc<std::fs::DirEntry>,
Expand Down Expand Up @@ -331,7 +335,9 @@ impl DirEntry {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "nto",
target_os = "vita",
)))]
if let Some(file_type) = self.file_type {
return Ok(file_type);
Expand Down

0 comments on commit 6d25a00

Please sign in to comment.