Skip to content

Avoid unstable metadata API on Windows - #1611

Merged
oferchen merged 1 commit into
masterfrom
fix-unstable-feature-and-casting-errors
Oct 29, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-unstable-feature-and-casting-errors

Conversation

@oferchen

@oferchen oferchen commented Oct 29, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • derive Windows device identifiers from normalized path components when metadata access is unstable
  • document the rationale for the fallback

Testing

  • cargo check -p rsync-engine

@oferchen
oferchen merged commit 4db6a3a into master Oct 29, 2025
@oferchen
oferchen deleted the fix-unstable-feature-and-casting-errors branch October 29, 2025 23:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/engine/src/local_copy.rs Outdated
Comment on lines 236 to 242

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove now-unused windows metadata import

The new Windows branch derives the device identifier solely from path components and no longer calls metadata.volume_serial_number(). However, the std::os::windows::fs::MetadataExt import remains and is unused. With the repo’s cargo clippy --workspace --all-targets -- -Dwarnings lint gate, this unused import will now fail the build. Either drop the import or make its use conditional so that lint passes.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant