build: upgrade Rust toolchain to 1.97.1
Docs Deploy / Build and Deploy MkDocs (push) Successful in 49s
Test / Lint (push) Failing after 11m30s
Test / Test (push) Skipped
Test / Render parity (push) Skipped

This commit is contained in:
2026-07-18 05:20:43 +04:00
parent 93cddf1851
commit 337894528c
6 changed files with 20 additions and 16 deletions
+7 -3
View File
@@ -364,10 +364,14 @@ fn file_identity(metadata: &fs::Metadata) -> Option<u64> {
#[cfg(windows)]
#[allow(clippy::unnecessary_wraps)]
fn file_identity(metadata: &fs::Metadata) -> Option<u64> {
// Stable Rust does not expose the Windows file index. Keep a best-effort
// replacement detector from metadata that is available through the
// supported standard-library API; `read` also compares size and
// last-write time before returning bytes.
Some(
(metadata.volume_serial_number() as u64).rotate_left(40)
^ ((metadata.file_index_high() as u64) << 32)
^ metadata.file_index_low() as u64,
metadata.creation_time().rotate_left(17)
^ metadata.last_write_time().rotate_left(31)
^ u64::from(metadata.file_attributes()).rotate_left(47),
)
}