File tree 1 file changed +4
-4
lines changed
library/std/src/sys/unix/fs
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ mod remove_dir_all_xat {
138
138
/// It is only `Fd(None)` temporarily in `ensure_open()`.
139
139
Fd ( Option < OwnedFd > ) ,
140
140
141
- // Contains the `ReadDir` for the directory while it is being read. The ReadDir does not contain
142
- // a valid `root` path, because it is not needed. It also contains the file descriptor of the
143
- // directory to avoid calls to dirfd(3).
141
+ /// Contains the `ReadDir` for the directory while it is being read. The ReadDir does not contain
142
+ /// a valid `root` path, because it is not needed. It also contains the file descriptor of the
143
+ /// directory to avoid calls to dirfd(3).
144
144
OpenReadDir ( ReadDir , BorrowedFd < ' a > ) ,
145
145
}
146
146
@@ -247,7 +247,7 @@ mod remove_dir_all_xat {
247
247
// Make sure that the reopened directory has the same inode as when we visited it descending
248
248
// the directory tree.
249
249
if self . dev != stat. st_dev || self . ino != stat. st_ino {
250
- return Err ( io:: Error :: new (
250
+ return Err ( io:: const_io_error! (
251
251
io:: ErrorKind :: Uncategorized ,
252
252
"directory with unexpected dev/inode pair" ,
253
253
) ) ;
You can’t perform that action at this time.
0 commit comments