We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 128e9d2 + fed5f98 commit e4f6895Copy full SHA for e4f6895
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