mirror of
https://github.com/denoland/deno.git
synced 2025-02-24 06:02:18 -05:00
Fix missing std and using
This commit is contained in:
parent
e93a521c93
commit
f1f74d12fe
1 changed files with 4 additions and 3 deletions
|
@ -825,14 +825,15 @@ fn stat_extra(
|
||||||
use winapi::um::fileapi::FILE_BASIC_INFO;
|
use winapi::um::fileapi::FILE_BASIC_INFO;
|
||||||
use winapi::shared::minwindef::FALSE;
|
use winapi::shared::minwindef::FALSE;
|
||||||
use winapi::um::winbase::GetFileInformationByHandleEx;
|
use winapi::um::winbase::GetFileInformationByHandleEx;
|
||||||
|
use winapi::um::minwinbase::FileBasicInfo;
|
||||||
|
|
||||||
let mut change_time = {
|
let mut change_time = {
|
||||||
let mut file_info: FILE_BASIC_INFO = mem::zeroed();
|
let mut file_info: FILE_BASIC_INFO = std::mem::zeroed();
|
||||||
if GetFileInformationByHandleEx(
|
if GetFileInformationByHandleEx(
|
||||||
handle,
|
handle,
|
||||||
FileBasicInfo,
|
FileBasicInfo,
|
||||||
&mut file_info as *mut _ as *mut _,
|
&mut file_info as *mut _ as *mut _,
|
||||||
mem::size_of::<FILE_BASIC_INFO>() as u32,
|
std::mem::size_of::<FILE_BASIC_INFO>() as u32,
|
||||||
) == FALSE {
|
) == FALSE {
|
||||||
return Err(std::io::Error::last_os_error());
|
return Err(std::io::Error::last_os_error());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue