mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
du: remove useless transmute to fix clippy warning
This commit is contained in:
parent
898914b6fb
commit
689000576b
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ use winapi::um::minwinbase::{FileIdInfo, FileStandardInfo};
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use winapi::um::winbase::GetFileInformationByHandleEx;
|
use winapi::um::winbase::GetFileInformationByHandleEx;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use winapi::um::winnt::{FILE_ID_128, ULONGLONG};
|
use winapi::um::winnt::FILE_ID_128;
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const HELP: &str = "help";
|
pub const HELP: &str = "help";
|
||||||
|
@ -254,7 +254,7 @@ fn get_file_info(path: &Path) -> Option<FileInfo> {
|
||||||
if success != 0 {
|
if success != 0 {
|
||||||
result = Some(FileInfo {
|
result = Some(FileInfo {
|
||||||
file_id: std::mem::transmute::<FILE_ID_128, u128>(file_info.FileId),
|
file_id: std::mem::transmute::<FILE_ID_128, u128>(file_info.FileId),
|
||||||
dev_id: std::mem::transmute::<ULONGLONG, u64>(file_info.VolumeSerialNumber),
|
dev_id: file_info.VolumeSerialNumber,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue