We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd805f0 commit fed5f98Copy full SHA for fed5f98
library/std/src/sys/pal/windows/fs.rs
@@ -328,9 +328,6 @@ impl File {
328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329
);
330
if result == 0 {
331
- if api::get_last_error().code != 0 {
332
- panic!("FILE_ALLOCATION_INFO failed!!!");
333
- }
334
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
335
let result = c::SetFileInformationByHandle(
336
handle.as_raw_handle(),
0 commit comments