Skip to content

Commit fed5f98

Browse files
committed
Remove test panic from File::open
1 parent cd805f0 commit fed5f98

File tree

1 file changed

+0
-3
lines changed
  • library/std/src/sys/pal/windows

1 file changed

+0
-3
lines changed

library/std/src/sys/pal/windows/fs.rs

-3
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ impl File {
328328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329329
);
330330
if result == 0 {
331-
if api::get_last_error().code != 0 {
332-
panic!("FILE_ALLOCATION_INFO failed!!!");
333-
}
334331
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
335332
let result = c::SetFileInformationByHandle(
336333
handle.as_raw_handle(),

0 commit comments

Comments
 (0)