Skip to content

Commit 646d41c

Browse files
committed
Calling file_type may fail
1 parent 6feacbb commit 646d41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-io-fs-2.1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl DirEntry {
510510
/// On some platforms this may not require reading the metadata of the
511511
/// underlying file from the filesystem, but on other platforms it may be
512512
/// required to do so.
513-
pub fn file_type(&self) -> FileType;
513+
pub fn file_type(&self) -> io::Result<FileType>;
514514

515515
/// Returns the file name for this directory entry.
516516
pub fn file_name(&self) -> OsString;

0 commit comments

Comments
 (0)