Skip to content

Commit

Permalink
Remove test panic from File::open
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jan 21, 2025
1 parent cd805f0 commit fed5f98
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/std/src/sys/pal/windows/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ impl File {
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
);
if result == 0 {
if api::get_last_error().code != 0 {
panic!("FILE_ALLOCATION_INFO failed!!!");
}
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
let result = c::SetFileInformationByHandle(
handle.as_raw_handle(),
Expand Down

0 comments on commit fed5f98

Please sign in to comment.