File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ use crate::prelude::*;
1515use crate :: task:: { spawn_blocking, Context , Poll , Waker } ;
1616use crate :: utils:: Context as _;
1717
18+ const ARC_TRY_UNWRAP_EXPECT : & str = "cannot acquire ownership of the file handle after drop" ;
19+
1820/// An open file on the filesystem.
1921///
2022/// Depending on what options the file was opened with, this type can be used for reading and/or
@@ -413,9 +415,7 @@ impl From<std::fs::File> for File {
413415}
414416
415417cfg_unix ! {
416- use crate :: os:: unix:: io:: { AsRawFd , FromRawFd , IntoRawFd , RawFd } ;
417-
418-
418+ use crate :: os:: unix:: io:: { AsRawFd , FromRawFd , IntoRawFd , RawFd } ;
419419
420420 impl AsRawFd for File {
421421 fn as_raw_fd( & self ) -> RawFd {
@@ -1027,6 +1027,4 @@ mod tests {
10271027 Ok ( ( ) )
10281028 } )
10291029 }
1030- }
1031-
1032- const ARC_TRY_UNWRAP_EXPECT : & str = "cannot acquire ownership of the file handle after drop" ;
1030+ }
You can’t perform that action at this time.
0 commit comments