Skip to content

Commit 6d25a00

Browse files
authored
fs: update cfg attr in fs::read_dir (#5806)
1 parent 78bf8a9 commit 6d25a00

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tokio/src/fs/read_dir.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ impl ReadDir {
139139
target_os = "solaris",
140140
target_os = "illumos",
141141
target_os = "haiku",
142-
target_os = "vxworks"
142+
target_os = "vxworks",
143+
target_os = "nto",
144+
target_os = "vita",
143145
)))]
144146
file_type: std.file_type().ok(),
145147
std: Arc::new(std),
@@ -200,7 +202,9 @@ pub struct DirEntry {
200202
target_os = "solaris",
201203
target_os = "illumos",
202204
target_os = "haiku",
203-
target_os = "vxworks"
205+
target_os = "vxworks",
206+
target_os = "nto",
207+
target_os = "vita",
204208
)))]
205209
file_type: Option<FileType>,
206210
std: Arc<std::fs::DirEntry>,
@@ -331,7 +335,9 @@ impl DirEntry {
331335
target_os = "solaris",
332336
target_os = "illumos",
333337
target_os = "haiku",
334-
target_os = "vxworks"
338+
target_os = "vxworks",
339+
target_os = "nto",
340+
target_os = "vita",
335341
)))]
336342
if let Some(file_type) = self.file_type {
337343
return Ok(file_type);

0 commit comments

Comments
 (0)