diff --git a/src/uu/du/src/du.rs b/src/uu/du/src/du.rs index 08d4ef0e9..22d229f83 100644 --- a/src/uu/du/src/du.rs +++ b/src/uu/du/src/du.rs @@ -49,7 +49,7 @@ use winapi::um::minwinbase::{FileIdInfo, FileStandardInfo}; #[cfg(windows)] use winapi::um::winbase::GetFileInformationByHandleEx; #[cfg(windows)] -use winapi::um::winnt::{FILE_ID_128, ULONGLONG}; +use winapi::um::winnt::FILE_ID_128; mod options { pub const HELP: &str = "help"; @@ -254,7 +254,7 @@ fn get_file_info(path: &Path) -> Option { if success != 0 { result = Some(FileInfo { file_id: std::mem::transmute::(file_info.FileId), - dev_id: std::mem::transmute::(file_info.VolumeSerialNumber), + dev_id: file_info.VolumeSerialNumber, }); } }