Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the return type of
volume_serial_number
to u32
.
Change the return types of `volume_serial_number()` and `number_of_links()` from `u64` to `u32`. This makes it easier to migrate code from manually using the underlying Windows APIs with `dwVolumeSerialNumber` and `nNumberOfLinks`, which are `u32`, to using `winapi_util::file::Information` instead. This also aligns with Rust nightly's [`windows_by_handle`] feature, where the [corresponding types are `u32`]. [`windows_by_handle`]: rust-lang/rust#63010 [corresponding types are `u32`]: https://doc.rust-lang.org/stable/std/os/windows/fs/trait.MetadataExt.html#tymethod.volume_serial_number
- Loading branch information